Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
22
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
3.2.11 Chip Reset
FT4222_STATUS FT4222_ChipReset(FT_HANDLE ftHandle)
Supported Chip:
Summary:
Software reset for device.
This function is used to attempt to recover system after a failure. It is a software reset for device.
Parameters:
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_ChipReset(ftHandle);
if (FT4222_OK == ft4222Status)
{
// chip has been reset
}
else
{
// chip reset failed
}
FT_Close(ftHandle);
3.3 SPI Master Functions
The FT4222H can be initialized as an SPI master under all modes.
As SPI master, it allows data transfers in three types of bit width:
Single SPI transfer – Standard data transfer format – data is read and written
simultaneously