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:
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:
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:
Summary:
Initialize the FT4222H as an SPI slave. It is similar to FT4222_SPISlave_Init with parameters to
define the SPI Slave Protocol.
Parameters:
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