www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - I2C Bus API


I2C_scan

Scan for I2C slave devices

unsigned char I2C_scan ( unsigned char start_addr,
                         unsigned char end_addr );

Parameters

start_addr

First slave address (even address, LSB=0)

end_addr

Last slave address (even address, LSB=0)

Return Value

0 => no slave found
Non-zero => address of the first slaved device found

Comments

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

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document