Functions | |
| void | Cy_SysClk_ClkLfSetSource (cy_en_clklf_in_sources_t source) |
| Sets the source for the low frequency clock(clkLf). More... | |
| cy_en_clklf_in_sources_t | Cy_SysClk_ClkLfGetSource (void) |
| Reports the source for the low frequency clock (clkLf). More... | |
| uint32_t | Cy_SysClk_ClkLfGetFrequency (void) |
| Reports the frequency of the clklf. More... | |
| uint32_t | Cy_SysClk_ClkLfCsvGetRefFrequency (cy_en_clklf_csv_ref_clk_t refClk) |
| Get the clklf csv reference clock frequency. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkLfCsvManualConfigure (cy_en_clklf_csv_ref_clk_t refClk, const cy_stc_clklf_csv_manual_config_t *csvConfig) |
| Manually configures the clklf csv based on user inputs. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_ClkLfCsvConfigure (cy_en_clklf_csv_ref_clk_t refClk, uint32_t accuracy) |
| Configures clklf csv. More... | |
| void | Cy_SysClk_ClkLfCsvEnable (void) |
| Enables the csv for the clklf. More... | |
| void | Cy_SysClk_ClkLfCsvDisable (void) |
| Disables the csv for the clklf. More... | |
| bool | Cy_SysClk_IsClkLfCsvEnabled (void) |
| Returns the enabled status of csv for the clklf. More... | |
| void Cy_SysClk_ClkLfSetSource | ( | cy_en_clklf_in_sources_t | source | ) |
Sets the source for the low frequency clock(clkLf).
| source | cy_en_clklf_in_sources_t |
| cy_en_clklf_in_sources_t Cy_SysClk_ClkLfGetSource | ( | void | ) |
Reports the source for the low frequency clock (clkLf).
| uint32_t Cy_SysClk_ClkLfGetFrequency | ( | void | ) |
Reports the frequency of the clklf.
| uint32_t Cy_SysClk_ClkLfCsvGetRefFrequency | ( | cy_en_clklf_csv_ref_clk_t | refClk | ) |
Get the clklf csv reference clock frequency.
| refClk | Reference clock source. |
| cy_en_sysclk_status_t Cy_SysClk_ClkLfCsvManualConfigure | ( | cy_en_clklf_csv_ref_clk_t | refClk, |
| const cy_stc_clklf_csv_manual_config_t * | csvConfig | ||
| ) |
Manually configures the clklf csv based on user inputs.
| refClk | Reference clock for csv operation. |
| csvConfig | Selects the csv configuration required. |
| cy_en_sysclk_status_t Cy_SysClk_ClkLfCsvConfigure | ( | cy_en_clklf_csv_ref_clk_t | refClk, |
| uint32_t | accuracy | ||
| ) |
Configures clklf 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
| refClk | Selects the reference clock for csv operation. |
| accuracy | Required accuracy. |
| void Cy_SysClk_ClkLfCsvEnable | ( | void | ) |
Enables the csv for the clklf.
| void Cy_SysClk_ClkLfCsvDisable | ( | void | ) |
Disables the csv for the clklf.
| bool Cy_SysClk_IsClkLfCsvEnabled | ( | void | ) |
Returns the enabled status of csv for the clklf.