EasyManua.ls Logo

FTDI LibFT4222 - Set Suspend out

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
13
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
Summary:
Get the current system clock rate.
Parameters:
ftHandle
Handle of the device.
pClk
Pointer to a variable of type FT4222_ClockRate where the value will be stored.
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.
FT4222_INVALID_POINTER: Parameter pClk is NULL.
Example:
FT_HANDLE ftHandle = NULL;
FT_STATUS ftStatus;
FT4222_STATUS ft4222Status;
FT4222_ClockRate clk;
ftStatus = FT_Open(0, &ftHandle);
if (FT_OK != ftStatus)
{
// open failed
return;
}
ft4222Status = FT4222_GetClock(ftHandle, &clk);
if (FT4222_OK != ft4222Status)
{
// get clock failed
return;
}
FT_Close(ftHandle);
3.2.5 Set Suspend Out
FT4222_STATUS FT4222_SetSuspendOut(FT_HANDLE ftHandle, BOOL enable)
Supported Chip:
FT4222 chip version
Supported
FT4222 Rev A
YES
FT4222 Rev B
YES
FT4222 Rev C
YES
FT4222 Rev D
YES
Summary:
Enable or disable, suspend out, which will emit a signal when FT4222H enters suspend mode.
Please note that the suspend-out pin is not available under mode 2. By default, suspend-out
function is on.
When suspend-out function is on, suspend-out pin emits signal according to suspend-out polarity.

Table of Contents