51#define FTDI_API extern "C"
60#define SPI_TRANSFER_OPTIONS_SIZE_IN_BYTES 0x00000000
62#define SPI_TRANSFER_OPTIONS_SIZE_IN_BITS 0x00000001
64#define SPI_TRANSFER_OPTIONS_CHIPSELECT_ENABLE 0x00000002
66#define SPI_TRANSFER_OPTIONS_CHIPSELECT_DISABLE 0x00000004
71#define SPI_CONFIG_OPTION_MODE_MASK 0x00000003
72#define SPI_CONFIG_OPTION_MODE0 0x00000000
73#define SPI_CONFIG_OPTION_MODE1 0x00000001
74#define SPI_CONFIG_OPTION_MODE2 0x00000002
75#define SPI_CONFIG_OPTION_MODE3 0x00000003
77#define SPI_CONFIG_OPTION_CS_MASK 0x0000001C
78#define SPI_CONFIG_OPTION_CS_DBUS3 0x00000000
79#define SPI_CONFIG_OPTION_CS_DBUS4 0x00000004
80#define SPI_CONFIG_OPTION_CS_DBUS5 0x00000008
81#define SPI_CONFIG_OPTION_CS_DBUS6 0x0000000C
82#define SPI_CONFIG_OPTION_CS_DBUS7 0x00000010
84#define SPI_CONFIG_OPTION_CS_ACTIVELOW 0x00000020
91#ifndef _FTDI_LIB_FT4222_H_
102typedef unsigned int uint32;
103typedef signed int int32;
static ft_uint32_t ft_uint8_t * buffer
Native USB device driver for FTDI FT232x, FT245x, FT2232x and FT4232x devices FTD2XX library definiti...
@ I2C_CLOCK_STANDARD_MODE
@ I2C_CLOCK_HIGH_SPEED_MODE
@ I2C_CLOCK_FAST_MODE_PLUS
FTDI_API FT_STATUS SPI_Write(FT_HANDLE handle, uint8 *buffer, uint32 sizeToTransfer, uint32 *sizeTransfered, uint32 options)
FTDI_API FT_STATUS SPI_GetNumChannels(uint32 *numChannels)
unsigned long long uint64
FTDI_API FT_STATUS FT_ReadGPIO(FT_HANDLE handle, uint8 *value)
FTDI_API FT_STATUS SPI_IsBusy(FT_HANDLE handle, unsigned char *state)
FTDI_API FT_STATUS SPI_ChangeCS(FT_HANDLE handle, uint32 configOptions)
FTDI_API FT_STATUS SPI_CloseChannel(FT_HANDLE handle)
enum I2C_ClockRate_t I2C_CLOCKRATE
FTDI_API void Init_libMPSSE(void)
FTDI_API FT_STATUS SPI_InitChannel(FT_HANDLE handle, ChannelConfig *config)
FTDI_API FT_STATUS FT_WriteGPIO(FT_HANDLE handle, uint8 dir, uint8 value)
FTDI_API FT_STATUS SPI_Read(FT_HANDLE handle, uint8 *buffer, uint32 sizeToTransfer, uint32 *sizeTransfered, uint32 options)
FTDI_API FT_STATUS SPI_OpenChannel(uint32 index, FT_HANDLE *handle)
struct ChannelConfig_t ChannelConfig
FTDI_API void Cleanup_libMPSSE(void)
FTDI_API FT_STATUS SPI_GetChannelInfo(uint32 index, FT_DEVICE_LIST_INFO_NODE *chanInfo)
FTDI_API FT_STATUS SPI_ToggleCS(FT_HANDLE handle, unsigned char state)
FTDI_API FT_STATUS SPI_ReadWrite(FT_HANDLE handle, uint8 *inBuffer, uint8 *outBuffer, uint32 sizeToTransfer, uint32 *sizeTransferred, uint32 transferOptions)