Functions | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfEnable (uint32_t clkHf) |
| Enables the selected clkHf. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfEnable_Safe (uint32_t clkHf) |
| Verifies if selected clkHf could be enabled and if yes than enables it. More... | |
| bool | Cy_SysClk_ClkHfIsEnabled (uint32_t clkHf) |
| Reports the Enabled/Disabled status of clkHf. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfDisable (uint32_t clkHf) |
| Disables the selected clkHf. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfSetSource (uint32_t clkHf, cy_en_clkhf_in_sources_t source) |
| Selects the source of the selected clkHf. More... | |
| cy_en_clkhf_in_sources_t | Cy_SysClk_ClkHfGetSource (uint32_t clkHf) |
| Reports the source of the selected clkHf. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfSetDivider (uint32_t clkHf, cy_en_clkhf_dividers_t divider) |
| Sets the pre-divider for a clkHf. More... | |
| cy_en_clkhf_dividers_t | Cy_SysClk_ClkHfGetDivider (uint32_t clkHf) |
| Reports the pre-divider value for a clkHf. More... | |
| uint32_t | Cy_SysClk_ClkHfGetFrequency (uint32_t clkHf) |
| Reports the frequency of the selected clkHf. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfDirectSel (uint32_t clkHf, bool enable) |
| Enable/Disable the direct source selection as IMO for CLK_HF[[n]]. More... | |
| bool | Cy_SysClk_IsClkHfDirectSelEnabled (uint32_t clkHf) |
| Checks if direct source selection as IMO for CLK_HF[[n]] is enabled/disabled. More... | |
| uint32_t | Cy_SysClk_ClkHfGetMaskOnPath (cy_en_clkhf_in_sources_t clkPath) |
| Get Mask value for the HF Clocks selected and enabled for clkPath as source e.g. More... | |
| uint32_t | Cy_SysClk_ClkHfAllGetMask (void) |
| Get Mask value for the all HF Clocks e.g. More... | |
| void | Cy_SysClk_ClkHfEnableDividerWithMask (uint32_t clkHfMask, cy_en_clkhf_dividers_t divider) |
| Divide all the enabled CLK_HF's with the divider value. More... | |
| void | Cy_SysClk_ClkHfEnableDirectMuxWithMask (uint32_t clkHfMask, bool enable) |
| Enable/ Disable the clock path for the HF Clocks in clkHfMask in disable case ROOT path will be enabled in enable case ROOT path will be disabled. More... | |
| uint32_t | Cy_SysClk_ClkHfCsvGetRefFrequency (cy_en_clkhf_csv_ref_clk_t refClk) |
| Get the clkHf csv reference clock frequency. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfCsvManualConfigure (const cy_stc_clkhf_csv_hf_config_t *hfConfig, const cy_stc_clkhf_csv_manual_config_t *csvConfig) |
| Manually configures the clkHf csv based on user inputs. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkHfCsvConfigure (const cy_stc_clkhf_csv_hf_config_t *hfConfig, uint32_t accuracy) |
| Configures clkhf csv. More... | |
| void | Cy_SysClk_ClkHfCsvAction (uint32_t clkHf, cy_en_clkhf_csv_action_t action) |
| Configures the action taken when an anomaly is detected on the clkHf. More... | |
| void | Cy_SysClk_ClkHfCsvEnable (uint32_t clkHf) |
| Enables the csv for the provided clkHf. More... | |
| void | Cy_SysClk_ClkHfCsvDisable (uint32_t clkHf) |
| Disables the csv for the provided clkHf. More... | |
| bool | Cy_SysClk_IsClkHfCsvEnabled (uint32_t clkHf) |
| Returns the enabled status of csv for the provided clkHf. More... | |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfEnable | ( | uint32_t | clkHf | ) |
Enables the selected clkHf.
| clkHf | Selects which clkHf to enable. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfEnable_Safe | ( | uint32_t | clkHf | ) |
Verifies if selected clkHf could be enabled and if yes than enables it.
| clkHf | Selects which clkHf to enable. |
| bool Cy_SysClk_ClkHfIsEnabled | ( | uint32_t | clkHf | ) |
Reports the Enabled/Disabled status of clkHf.
| clkHf | Selects which clkHf to check. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfDisable | ( | uint32_t | clkHf | ) |
Disables the selected clkHf.
| clkHf | Selects which clkHf to enable. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfSetSource | ( | uint32_t | clkHf, |
| cy_en_clkhf_in_sources_t | source | ||
| ) |
Selects the source of the selected clkHf.
| clkHf | selects which clkHf mux to configure. |
| source | cy_en_clkhf_in_sources_t |
| cy_en_clkhf_in_sources_t Cy_SysClk_ClkHfGetSource | ( | uint32_t | clkHf | ) |
Reports the source of the selected clkHf.
| clkHf | selects which clkHf to get the source of. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfSetDivider | ( | uint32_t | clkHf, |
| cy_en_clkhf_dividers_t | divider | ||
| ) |
Sets the pre-divider for a clkHf.
| clkHf | selects which clkHf divider to configure. |
| divider | cy_en_clkhf_dividers_t |
| cy_en_clkhf_dividers_t Cy_SysClk_ClkHfGetDivider | ( | uint32_t | clkHf | ) |
Reports the pre-divider value for a clkHf.
| clkHf | selects which clkHf to check divider of. |
| uint32_t Cy_SysClk_ClkHfGetFrequency | ( | uint32_t | clkHf | ) |
Reports the frequency of the selected clkHf.
| clkHf | Selects the clkHf |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfDirectSel | ( | uint32_t | clkHf, |
| bool | enable | ||
| ) |
Enable/Disable the direct source selection as IMO for CLK_HF[[n]].
| clkHf | Selects the clkHf |
| enable | True - Selects IMO/IHO (depending which is present on the device), False - Selects Root Mux |
| bool Cy_SysClk_IsClkHfDirectSelEnabled | ( | uint32_t | clkHf | ) |
Checks if direct source selection as IMO for CLK_HF[[n]] is enabled/disabled.
| clkHf | Selects the clkHf |
| uint32_t Cy_SysClk_ClkHfGetMaskOnPath | ( | cy_en_clkhf_in_sources_t | clkPath | ) |
Get Mask value for the HF Clocks selected and enabled for clkPath as source e.g.
Mask return will have Bit 0 set if HFCLK0 is enabled and source is clkPath
| clkPath | clock path |
| uint32_t Cy_SysClk_ClkHfAllGetMask | ( | void | ) |
Get Mask value for the all HF Clocks e.g.
Mask return will have Bit 0 set if HFCLK0 is enabled
| void Cy_SysClk_ClkHfEnableDividerWithMask | ( | uint32_t | clkHfMask, |
| cy_en_clkhf_dividers_t | divider | ||
| ) |
Divide all the enabled CLK_HF's with the divider value.
| clkHfMask | CLKHF mask for of the Clocks |
| divider | Divider Value cy_en_clkhf_dividers_t |
| void Cy_SysClk_ClkHfEnableDirectMuxWithMask | ( | uint32_t | clkHfMask, |
| bool | enable | ||
| ) |
Enable/ Disable the clock path for the HF Clocks in clkHfMask in disable case ROOT path will be enabled in enable case ROOT path will be disabled.
| clkHfMask | CLKHF mask for of the Clocks |
| enable | to enable or disable direct path |
| uint32_t Cy_SysClk_ClkHfCsvGetRefFrequency | ( | cy_en_clkhf_csv_ref_clk_t | refClk | ) |
Get the clkHf csv reference clock frequency.
| refClk | Reference clock source. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfCsvManualConfigure | ( | const cy_stc_clkhf_csv_hf_config_t * | hfConfig, |
| const cy_stc_clkhf_csv_manual_config_t * | csvConfig | ||
| ) |
Manually configures the clkHf csv based on user inputs.
| hfConfig | Selects the clkHf, reference clock for csv operation. |
| csvConfig | Selects the csv configuration required. |
| cy_en_sysclk_status_t Cy_SysClk_ClkHfCsvConfigure | ( | const cy_stc_clkhf_csv_hf_config_t * | hfConfig, |
| uint32_t | accuracy | ||
| ) |
Configures clkhf csv.
The configuration formula used is: Lower_limit = Target - Required accuracy/2 Upper_limit = Target + Required accuracy/2 Period = Target / (Reference frequency / Monitor frequency) Start_time = (Period +3) * (Reference frequency / Monitor frequency) - Upper_limit
| hfConfig | Selects the clkHf, reference clock for csv operation. |
| accuracy | Required accuracy. |
| void Cy_SysClk_ClkHfCsvAction | ( | uint32_t | clkHf, |
| cy_en_clkhf_csv_action_t | action | ||
| ) |
Configures the action taken when an anomaly is detected on the clkHf.
| clkHf | Selects the clkHf. |
| action | Action to be taken when anomaly is detected cy_en_clkhf_csv_action_t |
| void Cy_SysClk_ClkHfCsvEnable | ( | uint32_t | clkHf | ) |
Enables the csv for the provided clkHf.
| clkHf | Selects the clkHf. |
| void Cy_SysClk_ClkHfCsvDisable | ( | uint32_t | clkHf | ) |
Disables the csv for the provided clkHf.
| clkHf | Selects the clkHf. |
| bool Cy_SysClk_IsClkHfCsvEnabled | ( | uint32_t | clkHf | ) |
Returns the enabled status of csv for the provided clkHf.
| clkHf | Selects the clkHf. |