www.beck-ipc.com

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


I2C_scan_ext

Scan for I2C slave devices (extended address)

unsigned int I2C_scan_ext ( unsigned int start_addr,
                             unsigned int 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.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.20V1.20V1.20V0.90

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.01

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


End of document