Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
14
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
The default value of suspend-out polarity is active high. It means suspend-out pin output low in
normal mode and output high in suspend mode. Suspend-out polarity only can be adjusted by
FT_PROG.
Parameters:
TRUE to enable suspend out and configure GPIO2 as an output pin for emitting a
signal when suspended.
FALSE to switch back to GPIO2.
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.
Example:
FT_HANDLE ftHandle = NULL;
FT_STATUS ftStatus;
FT4222_STATUS ft4222Status;
ftStatus = FT_Open(0, &ftHandle);
if (FT_OK != ftStatus)
{
// open failed
return;
}
ft4222Status = FT4222_SetSuspendOut(ftHandle, TRUE);
if (FT4222_OK != ft4222Status)
{
// set suspend failed
return;
}
FT_Close(ftHandle);
3.2.6 Set Wake Up/Interrupt
FT4222_STATUS FT4222_SetWakeUpInterrupt(FT_HANDLE ftHandle, BOOL enable)
Supported Chip:
Summary:
Enable or disable wakeup/interrupt. By default, wake-up/interrupt function is on.
When Wake up/Interrupt function is on, GPIO3 pin acts as an input pin for wakeup/interrupt.
While system is in normal mode, GPIO3 acts as an interrupt pin. While system is in suspend mode,