You are here

U2C_ReadScl()

U2C_RESULT U2C_ReadScl(
      HANDLE hDevice,
      U2C_LINE_STATE* pState
);

The U2C_ReadScl() function checks the current state of the I2C bus SCL line.

Parameters:

hDevice

Handle to the U2C-12 device.

pState

Pointer to the location to be filled with the SCL line state:

  • LS_RELEASED - SCL line is released (high).
  • LS_DROPPED_BY_I2C_BRIDGE - U2C-12 device has pulled down the SCL line.
  • LS_DROPPED_BY_SLAVE - I 2 C slave device has pulled down the SCL line.

Return values:

U2C_SUCCESS

The SCL line state was successfully read.

U2C_HARDWARE_NOT_FOUND

U2C-12 device referenced by hDevice handle was not found.

Rating: 
No votes yet

Languages

User login