Functions | |
int32_t | Cy_SysClk_IloTrim (uint32_t iloFreq) |
Trims the ILO to be as close to 32,768 Hz as possible. More... | |
int32_t | Cy_SysClk_PiloTrim (uint32_t piloFreq) |
Trims the PILO to be as close to 32,768 Hz as possible. More... | |
void | Cy_SysClk_PiloInitialTrim (void) |
Initial trims the PILO to be as close to 32,768 Hz as possible. More... | |
void | Cy_SysClk_PiloUpdateTrimStep (void) |
Calculates and updates the PILO trim step size (stepSize variable). More... | |
int32_t Cy_SysClk_IloTrim | ( | uint32_t | iloFreq | ) |
Trims the ILO to be as close to 32,768 Hz as possible.
iloFreq | current ILO frequency. Call Cy_SysClk_StartClkMeasurementCounters and other measurement functions to obtain the current frequency of the ILO. |
int32_t Cy_SysClk_PiloTrim | ( | uint32_t | piloFreq | ) |
Trims the PILO to be as close to 32,768 Hz as possible.
piloFreq | current PILO frequency. Call Cy_SysClk_StartClkMeasurementCounters and other measurement functions to obtain the current frequency of the PILO. |
void Cy_SysClk_PiloInitialTrim | ( | void | ) |
Initial trims the PILO to be as close to 32,768 Hz as possible.
This function takes ECO ALTHF as reference clock and calculate Fine PILO frequency trimming, by using binary search algorithm.
This function requires configured BLE ECO ALTHF clock. Use ModusToolbox Device Configurator to configure BLE ECO ALTHF clock.
void Cy_SysClk_PiloUpdateTrimStep | ( | void | ) |
Calculates and updates the PILO trim step size (stepSize variable).
The stepSize value is used by Cy_SysClk_PiloTrim function during periodical PILO calibration.
This function requires configured BLE ECO ALTHF clock. Use ModusToolbox Device Configurator to configure BLE ECO ALTHF clock.