Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
57
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
Supported Chip:
Summary:
Set the address of the I
2
C slave device.
Parameters:
The 7-bit address of the I
2
C slave device.
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code.
Error code:
FT4222_DEVICE_NOT_OPENED: The initialization API is not called.
FT4222_IS_NOT_I2C_MODE: The device is not in i2c slave mode
Prerequisite:
FT4222_I2CSlave_Init
Example:
Please refer to the example in FT4222_I2CSlave_GetAddress
3.7.4 I
2
C Slave Get Rx Status
FT4222_STATUS FT4222_I2CSlave_GetRxStatus(FT_HANDLE ftHandle, uint16* pRxSize)
Supported Chip:
Summary:
Get number of bytes in the receive queue.
Parameters:
Pointer to a variable of type uint16 which receives the number of bytes in the
receive queue.
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code.