Function rc_i2c_get_lock#

Function Documentation#

int rc_i2c_get_lock(int bus)#

Fetches the current lock state of the bus.

Parameters:

bus[in] The bus ID

Returns:

Returns 0 if unlocked, 1 if locked, or -1 on error.