EasyManua.ls Logo

FTDI LibFT4222 - GPIO Read Trigger Queue

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
68
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:
Get the size of trigger event queue.
Parameters:
ftHandle
Handle of the device.
portNum
One of the following GPIO port:
GPIO_PORT0
GPIO_PORT1
GPIO_PORT2
GPIO_PORT3
pQueueSize
Pointer to a variable of type unit16 where the returning value will be stored.
Return Value:
FT4222_OK if successful, otherwise the return value is an FT error code.
Error code:
FT4222_DEVICE_NOT_OPENED: The initialization API is not called.
FT4222_GPIO_NOT_SUPPORTED_IN_THIS_MODE: GPIO function is not supported in mode 2 and
mode 3
FT4222_INVALID_POINTER: Parameter pQueueSize is NULL.
Prerequisite:
FT4222_GPIO_Init
Example:
Please refer the example in FT4222_GPIO_ReadTriggerQueue.
3.8.6 GPIO Read Trigger Queue
FT4222_STATUS FT4222_GPIO_ReadTriggerQueue(FT_HANDLE ftHandle, GPIO_Port portNum,
GPIO_Trigger* events, uint16 readSize, uint16* sizeofRead)
Supported Chip:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Get events recorded in the trigger event queue. Trigger conditions are set by a call to
FT4222_GPIO_SetInputTrigger for a GPIO or FT4222_SetInterruptTrigger for an interrupt. After
calling this function, all events will be removed from the event queue.

Table of Contents