sub_bb_i2c_scan

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_bb_i2c_scan( sub_handle hndl, int channel, int* slave_cnt,

                                                                         char* slave_buf )

 

Scan I2C bus looking for connected slave devices.

Parameters

channel - Bit-bang I2C Master channel 0..3

*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

Compatibility

FW version

0.2.6 or grater

Library version

0.1.12.16 or grater