Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
45
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
Summary:
Reset the SPI master or slave device. If the SPI bus encounters errors or works abnormally, this
function will reset the SPI device. It is not necessary to call SPI init function again after calling this
reset function. It remains all original setting of SPI.
Parameters:
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.
Prerequisite:
FT4222_SPISlave_InitEx or FT4222_SPISlave_Init or FT4222_SPIMaster_Init
3.5.3 SPI Set Driving Strength
FT4222_STATUS FT4222_SPI_SetDrivingStrength(FT_HANDLE ftHandle,
SPI_DrivingStrength clkStrength,
SPI_DrivingStrength ioStrength,
SPI_DrivingStrength ssoStrength)
Supported Chip:
Summary:
For the FT4222H SPI, set the driving strength of clk, io, and sso pins. Default driving strength of
all spi pins are 4MA. DS_4MA is adopted mostly. Unless there is some hardware wiring
requirement for device, set driving strength to 4MA is enough.
Parameters:
The driving strength of the clk pin (SPI master only):
DS_4MA
DS_8MA
DS_12MA
DS_16MA
The driving strength of the io pin:
DS_4MA
DS_8MA
DS_12MA
DS_16MA
The driving strength of the sso pin (SPI master only):
DS_4MA
DS_8MA