Home > C: Programming > Function Descriptions > | History back Previous chapter Next chapter Print |
is_ReadI2C |
uEye Camera Manual Version 3.80
is_ReadI2C
USB 2.0 |
USB 2.0 |
Syntax
INT is_ReadI2C (HIDS hCam,
INT nDeviceAddr, INT nRegisterAddr,
BYTE* pbData, INT nLen)
Description
Using is_ReadI2C(), you can read data over the I2C bus of a board level camera.
The uEye processes I2C addresses in a 7-bit format that is created from the 8-bit format by a bit shift to the right. The eighth bit indicates whether an address is a read (1) or write (0) address. For example, the 7-bit address 0x48 is the write address 0x90 and the read address 0x91 in 8-bit format.
For information on the signals applied to the I2C bus, refer to the chapters with electrical specifications for the USB uEye LE and the USB uEye ME.
|
|
Input Parameters
hCam |
Camera handle |
nDeviceAddr |
Slave device address in 7-bit format |
nRegisterAddr |
Address of a 8 bit register (only 8-bit addresses are valid) |
nRegisterAddr | |
Address of a 16 bit register |
pbData |
Pointer to the data to be read |
nLen |
Data length nLen = 1: 8 bits data nLen = 2: 16 bits data |
Return Values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |
IS_INVALID_I2C_DEVICE_ADDRESS |
Invalid I2C device address |
Related Functions
Example
• | see is_WriteI2C() |