Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
73
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
FT4222_SPICPHA
CLK_LEADING =0
CLK_TRAILING =1
SPI_DrivingStrength
DS_4MA
DS_8MA
DS_12MA
DS_16MA
enum GPIO_Port
GPIO_PORT0
GPIO_PORT1
GPIO_PORT2
GPIO_PORT3
enum GPIO_Dir
GPIO_OUTPUT
GPIO_INPUT
enum GPIO_Trigger
GPIO_TRIGGER_RISING
GPIO_TRIGGER_FALLING
GPIO_TRIGGER_LEVEL_HIGH
GPIO_TRIGGER_LEVEL_LOW
enum GPIO_Output
GPIO_OUTPUT_LOW
GPIO_OUTPUT_HIGH
enum I2C_MasterFlag
START = 0x02
Repeated_START = 0x03 // Repeated_START will not send master code in HS mode
STOP = 0x04
START_AND_STOP = 0x06 // START condition followed by SEND and STOP condition
Structure Definitions
struct FT4222_Version
{
DWORD chipVersion; // The version of FT4222H chip
DWORD dllVersion; // The version of LibFT4222
};
struct SPI_Slave_Header
{
uint8 syncWord;
uint8 cmd;
uint8 sn;
uint16 size;
};