User`s guide

FUNCTIONS
SDK SECTION 11
Page 166
I2CBurstRead
unsigned int WINAPI I2CBurstRead(BYTE i2cAddress, long nBytes, BYTE* data)
Description
This function will read a specified number of bytes from a chosen device attached to the
I
2
C data bus.
Parameters
BYTE i2cAddress: The address of the device to read from.
long nBytes: The number of bytes to read from the device.
BYTE* data: The data read from the device.
Return
unsigned int
DRV_SUCCESS
DRV_VXDNOTINSTALLED
DRV_INIERROR
DRV_COFERROR
DRV_FLEXERROR
DRV_ERROR_ACK
DRV_I2CDEVNOTFOUND
DRV_I2CTIMEOUT
DRV_UNKNOWN_FUNC
Read successful.
VxD not loaded.
Unable to load “DETECTOR.INI”.
Unable to load “*.COF”.
Unable to load “*.RBF”.
Unable to communicate with card.
Could not find the specified device.
Timed out reading from device.
Unknown function, incorrect cof file.
See also
I2CBurstWrite, I2CRead, I2CWrite, I2cReset
I2CBurstWrite
unsigned int WINAPI I2CBurstWrite(BYTE i2cAddress, long nBytes, BYTE* data)
Description
This function will write a specified number of bytes to a chosen device attached to the I
2
C
data bus.
Parameters
BYTE i2cAddress: The address of the device to write to.
long nBytes: The number of bytes to write to the device.
BYTE* data: The data to write to the device.
Return
unsigned int
DRV_SUCCESS
DRV_VXDNOTINSTALLED
DRV_INIERROR
DRV_COFERROR
DRV_FLEXERROR
DRV_ERROR_ACK
DRV_I2CDEVNOTFOUND
DRV_I2CTIMEOUT
DRV_UNKNOWN_FUNC
Write successful.
VxD not loaded.
Unable to load “DETECTOR.INI”.
Unable to load “*.COF”.
Unable to load “*.RBF”.
Unable to communicate with card.
Could not find the specified device.
Timed out reading from device.
Unknown function, incorrect cof file.
See also
I2CBurstRead, I2CRead, I2CWrite, I2cReset