User`s guide

FUNCTIONS
SDK SECTION 11
Page 168
I2CWrite
unsigned int WINAPI I2CWrite(BYTE deviceID, BYTE intAddress, BYTE data)
Description
This function will write a single byte to the chosen device.
Parameters
BYTE deviceID: The device to write to.
BYTE intAddress: The internal address of the device to write to.
BYTE data: The byte to be written 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
I2CBurstWrite, I2CBurstRead, I2CRead, I2cReset
IdAndorDll
unsigned int WINAPI IdAndorDll (void)
Description THIS FUNCTION IS RESERVED.
InAuxPort
unsigned int WINAPI InAuxPort(int port, int* state)
Description
This function returns the state of the TTL Auxiliary Input Port on the Andor plug-in card.
Parameters
int port: Number of AUX in port on Andor card
Valid Values 1 to 4
int* state: current state of port
0 OFF/LOW
all other ON/HIGH
Return
unsigned int
DRV_SUCCESS
DRV_NOT_INITIALIZED
DRV_ACQUIRING
DRV_VXDNOTINSTALLED
DRV_ERROR_ACK
DRV_P1INVALID
AUX read.
System not initialized.
Acquisition in progress.
VxD not loaded.
Unable to communicate with card.
Invalid port id.
See also
OutAuxPort