Functions | |
| void | Cy_SysClk_LpEcoConfigure (cy_en_clkbak_lpeco_loadcap_range_t capValue, cy_en_clkbak_lpeco_frequency_range_t freqValue, cy_en_clkbak_lpeco_max_amplitude_t ampValue, bool ampDetEn) |
| Configures the low-power external crystal oscillator based on crystal characteristics. More... | |
| cy_en_sysclk_status_t | Cy_SysClk_LpEcoEnable (uint32_t timeoutus) |
| Enables the low-power external crystal oscillator (LPECO). More... | |
| void | Cy_SysClk_LpEcoDisable (void) |
| Disables the low-power external crystal oscillator (LPECO). More... | |
| void | Cy_SysClk_LpEcoSetFrequency (uint32_t freq) |
| Stores the low-power external crystal oscillator (LPECO) frequency in a global variable within Sysclk driver. More... | |
| uint32_t | Cy_SysClk_LpEcoGetFrequency (void) |
| Returns the frequency of the low-power external crystal oscillator (LPECO). More... | |
| cy_en_sysclk_status_t | Cy_SysClk_LpEcoPrescaleConfigure (bool enable, uint32_t int_div, uint32_t frac_div) |
| Configures the low-power external crystal oscillator (LPECO) Prescaler and derives clk_lpeco_prescaler. More... | |
| bool | Cy_SysClk_LpEcoPrescaleIsEnabled (void) |
| Reports whether or not LPECO Prescale is enabled. More... | |
| bool | Cy_SysClk_LpEcoAmplitudeOkay (void) |
| Reports the current status of the low-power external crystal oscillator (LPECO) amplitude detection. More... | |
| bool | Cy_SysClk_LpEcoIsReady (void) |
| Indicates whether or not the low-power external crystal oscillator (LPECO) has had enough time to start. More... | |
| void Cy_SysClk_LpEcoConfigure | ( | cy_en_clkbak_lpeco_loadcap_range_t | capValue, |
| cy_en_clkbak_lpeco_frequency_range_t | freqValue, | ||
| cy_en_clkbak_lpeco_max_amplitude_t | ampValue, | ||
| bool | ampDetEn | ||
| ) |
Configures the low-power external crystal oscillator based on crystal characteristics.
| capValue | cy_en_clkbak_lpeco_loadcap_range_t |
| freqValue | cy_en_clkbak_lpeco_frequency_range_t |
| ampValue | cy_en_clkbak_lpeco_max_amplitude_t |
| ampDetEn | Enable amplitude detection always (true) or only on init (false) |
| cy_en_sysclk_status_t Cy_SysClk_LpEcoEnable | ( | uint32_t | timeoutus | ) |
Enables the low-power external crystal oscillator (LPECO).
This function should be called after Cy_SysClk_LpEcoConfigure.
| timeoutus | Amount of time in microseconds to wait for the LPECO to stabilize. To avoid waiting for stabilization, set this parameter to 0. |
| void Cy_SysClk_LpEcoDisable | ( | void | ) |
Disables the low-power external crystal oscillator (LPECO).
This function should not be called if the LPECO is sourcing clkHf[0] or clkHf[1].
| void Cy_SysClk_LpEcoSetFrequency | ( | uint32_t | freq | ) |
Stores the low-power external crystal oscillator (LPECO) frequency in a global variable within Sysclk driver.
| freq | Operating frequency of the crystal in Hz. Valid range: 3990000...8010000 (3.99..8.01 MHz). |
| uint32_t Cy_SysClk_LpEcoGetFrequency | ( | void | ) |
Returns the frequency of the low-power external crystal oscillator (LPECO).
| cy_en_sysclk_status_t Cy_SysClk_LpEcoPrescaleConfigure | ( | bool | enable, |
| uint32_t | int_div, | ||
| uint32_t | frac_div | ||
| ) |
Configures the low-power external crystal oscillator (LPECO) Prescaler and derives clk_lpeco_prescaler.
| enable | LPECO Prescaler enable/disable. |
| int_div | 10-bit integer value. Subtract one from the desired divide value when using this parameter. For example , to divide by 1, int_div should be set to 0. |
| frac_div | 8-bit fraction value. |
| bool Cy_SysClk_LpEcoPrescaleIsEnabled | ( | void | ) |
Reports whether or not LPECO Prescale is enabled.
| bool Cy_SysClk_LpEcoAmplitudeOkay | ( | void | ) |
Reports the current status of the low-power external crystal oscillator (LPECO) amplitude detection.
| bool Cy_SysClk_LpEcoIsReady | ( | void | ) |
Indicates whether or not the low-power external crystal oscillator (LPECO) has had enough time to start.