Functions | |
cy_en_sysclk_status_t | Cy_SysClk_PllConfigure (uint32_t clkPath, const cy_stc_pll_config_t *config) |
Configures a given PLL. More... | |
cy_en_sysclk_status_t | Cy_SysClk_PllManualConfigure (uint32_t clkPath, const cy_stc_pll_manual_config_t *config) |
Manually configures a PLL based on user inputs. More... | |
cy_en_sysclk_status_t | Cy_SysClk_PllGetConfiguration (uint32_t clkPath, cy_stc_pll_manual_config_t *config) |
Reports configuration settings for a PLL. More... | |
cy_en_sysclk_status_t | Cy_SysClk_PllEnable (uint32_t clkPath, uint32_t timeoutus) |
Enables the PLL. More... | |
__STATIC_INLINE bool | Cy_SysClk_PllLocked (uint32_t clkPath) |
Reports whether or not the selected PLL is locked. More... | |
__STATIC_INLINE bool | Cy_SysClk_PllIsEnabled (uint32_t clkPath) |
Reports whether or not the selected PLL is enabled. More... | |
__STATIC_INLINE bool | Cy_SysClk_PllLostLock (uint32_t clkPath) |
Reports whether or not the selected PLL lost its lock since the last time this function was called. More... | |
__STATIC_INLINE cy_en_sysclk_status_t | Cy_SysClk_PllDisable (uint32_t clkPath) |
Disables the selected PLL. More... | |
cy_en_sysclk_status_t Cy_SysClk_PllConfigure | ( | uint32_t | clkPath, |
const cy_stc_pll_config_t * | config | ||
) |
Configures a given PLL.
The configuration formula used is: Fout = pll_clk * (P / Q / div_out), where: Fout is the desired output frequency pll_clk is the frequency of the input source P is the feedback divider. Its value is in bitfield FEEDBACK_DIV. Q is the reference divider. Its value is in bitfield REFERENCE_DIV. div_out is the reference divider. Its value is in bitfield OUTPUT_DIV.
clkPath | Selects which PLL to configure. 1 is the first PLL; 0 is invalid. |
config | cy_stc_pll_config_t |
cy_en_sysclk_status_t Cy_SysClk_PllManualConfigure | ( | uint32_t | clkPath, |
const cy_stc_pll_manual_config_t * | config | ||
) |
Manually configures a PLL based on user inputs.
clkPath | Selects which PLL to configure. 1 is the first PLL; 0 is invalid. |
config | cy_stc_pll_manual_config_t |
cy_en_sysclk_status_t Cy_SysClk_PllGetConfiguration | ( | uint32_t | clkPath, |
cy_stc_pll_manual_config_t * | config | ||
) |
Reports configuration settings for a PLL.
clkPath | Selects which PLL to report. 1 is the first PLL; 0 is invalid. |
config | cy_stc_pll_manual_config_t |
cy_en_sysclk_status_t Cy_SysClk_PllEnable | ( | uint32_t | clkPath, |
uint32_t | timeoutus | ||
) |
Enables the PLL.
The PLL should be configured before calling this function.
clkPath | Selects which PLL to enable. 1 is the first PLL; 0 is invalid. |
timeoutus | amount of time in microseconds to wait for the PLL to lock. If the lock doesn't occur, PLL is stopped. To avoid waiting for lock, set this to 0 and manually check for lock using Cy_SysClk_PllLocked. |
__STATIC_INLINE bool Cy_SysClk_PllLocked | ( | uint32_t | clkPath | ) |
Reports whether or not the selected PLL is locked.
clkPath | Selects which PLL to check. 1 is the first PLL; 0 is invalid. |
__STATIC_INLINE bool Cy_SysClk_PllIsEnabled | ( | uint32_t | clkPath | ) |
Reports whether or not the selected PLL is enabled.
clkPath | Selects which PLL to check. 1 is the first PLL; 0 is invalid. |
__STATIC_INLINE bool Cy_SysClk_PllLostLock | ( | uint32_t | clkPath | ) |
Reports whether or not the selected PLL lost its lock since the last time this function was called.
Clears the lost lock indicator.
clkPath | Selects which PLL to check. 1 is the first PLL; 0 is invalid. |
__STATIC_INLINE cy_en_sysclk_status_t Cy_SysClk_PllDisable | ( | uint32_t | clkPath | ) |
Disables the selected PLL.
clkPath | Selects which PLL to disable. 1 is the first PLL; 0 is invalid. |