EasyManua.ls Logo

FTDI LibFT4222 - SPI Slave Init Extend Function

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
37
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:
Initialize the FT4222H as an SPI slave. Default SPI_SlaveProtocol is
SPI_SLAVE_WITH_PROTOCOL. The default setting may be replaced with another SPI SLAVE
initialization API FT4222_SPISlave_Init_EX.
Parameters:
ftHandle
Handle of the device.
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code.
Error code:
FT4222_DEVICE_NOT_SUPPORTED: This device is not a FT4222 chip.
3.4.2 SPI Slave Init extend function
FT4222_STATUS FT4222_SPISlave_InitEx(FT_HANDLE ftHandle , SPI_SlaveProtocol
protocolOpt)
Supported Chip:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Initialize the FT4222H as an SPI slave. It is similar to FT4222_SPISlave_Init with parameters to
define the SPI Slave Protocol.
Parameters:
ftHandle
Handle of the device.
protocolOpt
SPI SLAVE protocol could be:
SPI_SLAVE_WITH_PROTOCOL
With the full SPI SLAVE PROTOCOL supported. Refer to chapter 3.4
SPI_SLAVE_NO_PROTOCOL
Remove SPI SLAVE protocol, users can design their own protocol.
SPI_SLAVE_NO_ACK
Retain SPI SLAVE protocol but remove command ACK
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code

Table of Contents