FTDI Community

General Category => Discussion - Software => Topic started by: rpshah on April 24, 2018, 11:41:21 AM

Title: API for setting clock divider
Post by: rpshah on April 24, 2018, 11:41:21 AM
I am using LibFT4222.h and ftd2xx.h library for communicating with FT4222H device.
As per the LibFt4222 programming guide user can set the clock by FT_SetClock function once the FTDI device is opened in SPI_MASTER_INIT mode.
Similarly if user wants to set clock divider also then is there any API for setting clock divider for FTDI device once it is opened in SPI_MASTER_INIT mode?
Title: Re: API for setting clock divider
Post by: FTDI Community on May 01, 2018, 12:04:35 PM
Hello,

This has been answered via email and is pasted here for the benefit of the community:

If you wish to change the Clock Divider for the SPI master you would need to recall the FT4222_SPIMaster_Init() function.

Best Regards,
FTDI Community