Functions | |
cy_en_sysclk_status_t | Cy_SysClk_FllConfigure (uint32_t inputFreq, uint32_t outputFreq, cy_en_fll_pll_output_mode_t outputMode) |
Configures the FLL, for best accuracy optimization. More... | |
cy_en_sysclk_status_t | Cy_SysClk_FllManualConfigure (const cy_stc_fll_manual_config_t *config) |
Manually configures the FLL based on user inputs. More... | |
void | Cy_SysClk_FllGetConfiguration (cy_stc_fll_manual_config_t *config) |
Reports the FLL configuration settings. More... | |
cy_en_sysclk_status_t | Cy_SysClk_FllEnable (uint32_t timeoutus) |
Enables the FLL. More... | |
__STATIC_INLINE bool | Cy_SysClk_FllLocked (void) |
Reports whether the FLL is locked first time during FLL starting. More... | |
__STATIC_INLINE bool | Cy_SysClk_FllIsEnabled (void) |
Reports whether or not the FLL is enabled. More... | |
__STATIC_INLINE cy_en_sysclk_status_t | Cy_SysClk_FllDisable (void) |
Disables the FLL and the CCO. More... | |
cy_en_sysclk_status_t Cy_SysClk_FllConfigure | ( | uint32_t | inputFreq, |
uint32_t | outputFreq, | ||
cy_en_fll_pll_output_mode_t | outputMode | ||
) |
Configures the FLL, for best accuracy optimization.
inputFreq | frequency of input source, in Hz |
outputFreq | Desired FLL output frequency, in Hz. Allowable range is 24 MHz to 100 MHz. In all cases, FLL_OUTPUT_DIV must be set; the output divide by 2 option is required. |
outputMode | cy_en_fll_pll_output_mode_t If output mode is bypass, then the output frequency equals the input source frequency regardless of the frequency parameter values. |
cy_en_sysclk_status_t Cy_SysClk_FllManualConfigure | ( | const cy_stc_fll_manual_config_t * | config | ) |
Manually configures the FLL based on user inputs.
config | cy_stc_fll_manual_config_t |
void Cy_SysClk_FllGetConfiguration | ( | cy_stc_fll_manual_config_t * | config | ) |
Reports the FLL configuration settings.
config | cy_stc_fll_manual_config_t |
cy_en_sysclk_status_t Cy_SysClk_FllEnable | ( | uint32_t | timeoutus | ) |
Enables the FLL.
The FLL should be configured before calling this function.
timeoutus | Amount of time in micro seconds to wait for FLL to lock. If lock doesn't occur, the FLL is stopped. To avoid waiting for lock, set this to 0 and manually check for lock using Cy_SysClk_FllLocked. |
__STATIC_INLINE bool Cy_SysClk_FllLocked | ( | void | ) |
Reports whether the FLL is locked first time during FLL starting.
Intended to be used with Cy_SysClk_FllEnable with zero timeout.
__STATIC_INLINE bool Cy_SysClk_FllIsEnabled | ( | void | ) |
Reports whether or not the FLL is enabled.
__STATIC_INLINE cy_en_sysclk_status_t Cy_SysClk_FllDisable | ( | void | ) |
Disables the FLL and the CCO.