@CHIP-RTOS C Library V2.06 - 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.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|