|
|
LIBFT4222_API FT4222_STATUS | FT4222_UnInitialize (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SetClock (FT_HANDLE ftHandle, FT4222_ClockRate clk) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GetClock (FT_HANDLE ftHandle, FT4222_ClockRate *clk) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SetWakeUpInterrupt (FT_HANDLE ftHandle, BOOL enable) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SetInterruptTrigger (FT_HANDLE ftHandle, GPIO_Trigger trigger) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SetSuspendOut (FT_HANDLE ftHandle, BOOL enable) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GetMaxTransferSize (FT_HANDLE ftHandle, uint16 *pMaxSize) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SetEventNotification (FT_HANDLE ftHandle, DWORD mask, PVOID param) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GetVersion (FT_HANDLE ftHandle, FT4222_Version *pVersion) |
|
LIBFT4222_API FT4222_STATUS | FT4222_ChipReset (FT_HANDLE ftHandle) |
|
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_Init (FT_HANDLE ftHandle, FT4222_SPIMode ioLine, FT4222_SPIClock clock, FT4222_SPICPOL cpol, FT4222_SPICPHA cpha, uint8 ssoMap) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_SetLines (FT_HANDLE ftHandle, FT4222_SPIMode spiMode) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_SingleRead (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeOfRead, BOOL isEndTransaction) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_SingleWrite (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred, BOOL isEndTransaction) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_SingleReadWrite (FT_HANDLE ftHandle, uint8 *readBuffer, uint8 *writeBuffer, uint16 bufferSize, uint16 *sizeTransferred, BOOL isEndTransaction) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPIMaster_MultiReadWrite (FT_HANDLE ftHandle, uint8 *readBuffer, uint8 *writeBuffer, uint8 singleWriteBytes, uint16 multiWriteBytes, uint16 multiReadBytes, uint32 *sizeOfRead) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_Init (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_InitEx (FT_HANDLE ftHandle, SPI_SlaveProtocol protocolOpt) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_SetMode (FT_HANDLE ftHandle, FT4222_SPICPOL cpol, FT4222_SPICPHA cpha) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_GetRxStatus (FT_HANDLE ftHandle, uint16 *pRxSize) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_Read (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeOfRead) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_Write (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPISlave_RxQuickResponse (FT_HANDLE ftHandle, BOOL enable) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPI_Reset (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPI_ResetTransaction (FT_HANDLE ftHandle, uint8 spiIdx) |
|
LIBFT4222_API FT4222_STATUS | FT4222_SPI_SetDrivingStrength (FT_HANDLE ftHandle, SPI_DrivingStrength clkStrength, SPI_DrivingStrength ioStrength, SPI_DrivingStrength ssoStrength) |
|
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_Init (FT_HANDLE ftHandle, uint32 kbps) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_Read (FT_HANDLE ftHandle, uint16 deviceAddress, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_Write (FT_HANDLE ftHandle, uint16 deviceAddress, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_ReadEx (FT_HANDLE ftHandle, uint16 deviceAddress, uint8 flag, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_WriteEx (FT_HANDLE ftHandle, uint16 deviceAddress, uint8 flag, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_Reset (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CMaster_GetStatus (FT_HANDLE ftHandle, uint8 *controllerStatus) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_Init (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_Reset (FT_HANDLE ftHandle) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_GetAddress (FT_HANDLE ftHandle, uint8 *addr) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_SetAddress (FT_HANDLE ftHandle, uint8 addr) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_GetRxStatus (FT_HANDLE ftHandle, uint16 *pRxSize) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_Read (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_Write (FT_HANDLE ftHandle, uint8 *buffer, uint16 bufferSize, uint16 *sizeTransferred) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_SetClockStretch (FT_HANDLE ftHandle, BOOL enable) |
|
LIBFT4222_API FT4222_STATUS | FT4222_I2CSlave_SetRespWord (FT_HANDLE ftHandle, uint8 responseWord) |
|
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_Init (FT_HANDLE ftHandle, GPIO_Dir gpioDir[4]) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_Read (FT_HANDLE ftHandle, GPIO_Port portNum, BOOL *value) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_Write (FT_HANDLE ftHandle, GPIO_Port portNum, BOOL bValue) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_SetInputTrigger (FT_HANDLE ftHandle, GPIO_Port portNum, GPIO_Trigger trigger) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_GetTriggerStatus (FT_HANDLE ftHandle, GPIO_Port portNum, uint16 *queueSize) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_ReadTriggerQueue (FT_HANDLE ftHandle, GPIO_Port portNum, GPIO_Trigger *events, uint16 readSize, uint16 *sizeofRead) |
|
LIBFT4222_API FT4222_STATUS | FT4222_GPIO_SetWaveFormMode (FT_HANDLE ftHandle, BOOL enable) |
|
FT4222 APIs.
- Author
- FTDI
- Date
- 10/08/2015
MIT License
Copyright (c) [2015] [FTDI]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Revision History: 1.0 - initial version 1.2 - allow use on non-Windows platforms; add I2CMaster ReadEx/WriteEx/GetStatus 1.3 add FT4222_I2CSlave_SetClockStretch FT4222_I2CSlave_SetRespWord
Definition in file LibFT4222.h.