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:
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:
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.