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 Compatibility
|