IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ i2cScan()

unsigned int i2cScan ( BYTE  idx,
unsigned int  start_addr,
unsigned int  end_addr,
BOOLEAN  ext 
)

This is an iterator function which is called repeatedly to determine all connected slaves. Specify on each sucessive call a new restricted slave address range until no further address is returned by this function.

Parameters
idxI2C bus index
     0 = I2C on I2C1
     1 = I2C on I2C2
     etc.
start_addrFirst slave address to start scan
end_addrLast slave address to scan
extIf "TRUE" use extended address mode
Returns
Zero = no slave found, Non-zero = slave address of first found slave device
Since
V1.02





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13