function [byte] = readUSB245()
%usage:
%   data = readUSB245();
%      where 'data' is type int16
%
%Reads current value of 8-bit digital input/output buffer from
%FTDI UM245R high-speed USB digital I/O module.
%
%Use writeUSB245(data) to write data to the UM245R device.
%
%See http://usd-apps.usd.edu/coglab/psyc770/USB245.html for detaills

global cogent;

byte = USB245(cogent.io.ftdiObj,0,0); %read USB 
