sub_i2c_scan

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_i2c_scan( sub_handle hndl, int* slave_cnt, char* slave_buf )

 

Scan I2C bus looking for connected slave devices.

Parameters

*slave_cnt - Buffer to store number of found slave devices

slave_buf - Buffer to store found slave device addresses

Return value

On success function returns 0. Otherwise error code.

See also

Error Codes, I2C Status