U2C_RESULT U2C_ReadSda (
HANDLE hDevice,
U2C_LINE_STATE* pState
);
The U2C_ReadSda function checks the current state of the SDA line of the I2C bus.
- Parameters:
-
| hDevice | Handle to the U2C-12 device. |
| pState | Pointer to the location to be filled with the SDA line state:
- LS_RELEASED - if SDA line is released (high).
- LS_DROPPED_BY_I2C_BRIDGE - if U2C-12 device has pulled down the SDA line.
- LS_DROPPED_BY_SLAVE - if I2C slave device has pulled down the SDA line.
|
- Return values:
-
| U2C_SUCCESS | The SDA line state was successfully read. |
| U2C_HARDWARE_NOT_FOUND | U2C-12 device referenced by hDevice handle was not found. |
|