Functions | |
| void | Cy_SysClk_EcoSetFrequency (uint32_t freq) |
| Stores the external crystal oscillator (ECO) frequency in a global variable within Sysclk driver. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_EcoManualConfigure (const cy_stc_clk_eco_config_t *ecoConfig) |
| Configures the external crystal oscillator (ECO) trim bits based on crystal characteristics. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_EcoEnable (uint32_t timeoutus) |
| Enables the external crystal oscillator (ECO). More... | |
| uint32_t | Cy_SysClk_EcoGetFrequency (void) |
| Returns the frequency of the external crystal oscillator (ECO). More... | |
| void | Cy_SysClk_EcoDisable (void) |
| Disables the external crystal oscillator (ECO). More... | |
| uint32_t | Cy_SysClk_EcoGetStatus (void) |
| Reports the current status of the external crystal oscillator (ECO). More... | |
| cy_en_sysclk_status_t | Cy_SysClk_EcoPrescaleConfigure (uint32_t enable, uint32_t int_div, uint32_t frac_div) |
| Configures the external crystal oscillator (ECO) using ECO Prescaler Configuration Register and derives clk_eco_prescaler. More... | |
| bool | Cy_SysClk_EcoPrescaleIsEnabled (void) |
| Reports whether or not ECO Prescale is enabled. More... | |
| uint32_t | Cy_SysClk_EcoPrescaleGetFrequency (void) |
| Returns the frequency of the external crystal oscillator (ECO) prescaler. More... | |
| void Cy_SysClk_EcoSetFrequency | ( | uint32_t | freq | ) |
Stores the external crystal oscillator (ECO) frequency in a global variable within Sysclk driver.
| freq | Operating frequency of the crystal in Hz. Valid range: 16000000...35000000 (16..35 MHz). |
| cy_en_sysclk_status_t Cy_SysClk_EcoManualConfigure | ( | const cy_stc_clk_eco_config_t * | ecoConfig | ) |
Configures the external crystal oscillator (ECO) trim bits based on crystal characteristics.
This function should be called only when the ECO is disabled.
| ecoConfig | cy_stc_clk_eco_config_t |
| cy_en_sysclk_status_t Cy_SysClk_EcoEnable | ( | uint32_t | timeoutus | ) |
Enables the external crystal oscillator (ECO).
This function should be called after Cy_SysClk_EcoConfigure.
| timeoutus | Amount of time in microseconds to wait for the ECO to stabilize. To avoid waiting for stabilization, set this parameter to 0. |
| uint32_t Cy_SysClk_EcoGetFrequency | ( | void | ) |
Returns the frequency of the external crystal oscillator (ECO).
| void Cy_SysClk_EcoDisable | ( | void | ) |
Disables the external crystal oscillator (ECO).
This function should not be called if the ECO is sourcing clkHf[0].
| uint32_t Cy_SysClk_EcoGetStatus | ( | void | ) |
Reports the current status of the external crystal oscillator (ECO).
| cy_en_sysclk_status_t Cy_SysClk_EcoPrescaleConfigure | ( | uint32_t | enable, |
| uint32_t | int_div, | ||
| uint32_t | frac_div | ||
| ) |
Configures the external crystal oscillator (ECO) using ECO Prescaler Configuration Register and derives clk_eco_prescaler.
| enable | ECO Prescaler enable/disable. |
| int_div | 10-bit integer value. |
| frac_div | 8-bit fraction value. |
| bool Cy_SysClk_EcoPrescaleIsEnabled | ( | void | ) |
Reports whether or not ECO Prescale is enabled.
| uint32_t Cy_SysClk_EcoPrescaleGetFrequency | ( | void | ) |
Returns the frequency of the external crystal oscillator (ECO) prescaler.