EasyManua.ls Logo

FTDI LibFT4222 - I 2 C Slave Get Rx Status

Default Icon
78 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Set the address of the I
2
C slave device.
Parameters:
ftHandle
Handle of the device.
addr
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:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Get number of bytes in the receive queue.
Parameters:
ftHandle
Handle of the device.
pRxSize
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.

Table of Contents