Functions | |
__STATIC_INLINE void | Cy_SysClk_ClkTimerSetSource (cy_en_clktimer_in_sources_t source) |
Sets the source for the timer clock (clk_timer). More... | |
__STATIC_INLINE cy_en_clktimer_in_sources_t | Cy_SysClk_ClkTimerGetSource (void) |
Reports the source for the timer clock (clk_timer). More... | |
__STATIC_INLINE void | Cy_SysClk_ClkTimerSetDivider (uint8_t divider) |
Sets the divider for the timer clock (clk_timer). More... | |
__STATIC_INLINE uint8_t | Cy_SysClk_ClkTimerGetDivider (void) |
Reports the divider value for the timer clock (clk_timer). More... | |
__STATIC_INLINE void | Cy_SysClk_ClkTimerEnable (void) |
Enables the timer clock (clk_timer). More... | |
__STATIC_INLINE bool | Cy_SysClk_ClkTimerIsEnabled (void) |
Reports the Enabled/Disabled status of the Timer. More... | |
__STATIC_INLINE void | Cy_SysClk_ClkTimerDisable (void) |
Disables the timer clock (clk_timer). More... | |
uint32_t | Cy_SysClk_ClkTimerGetFrequency (void) |
Reports the frequency of the timer clock (clk_timer). More... | |
__STATIC_INLINE void Cy_SysClk_ClkTimerSetSource | ( | cy_en_clktimer_in_sources_t | source | ) |
Sets the source for the timer clock (clk_timer).
The timer clock can be used as a source for SYSTICK as an alternate clock and one or more of the energy profiler counters.
source | cy_en_clktimer_in_sources_t |
__STATIC_INLINE cy_en_clktimer_in_sources_t Cy_SysClk_ClkTimerGetSource | ( | void | ) |
Reports the source for the timer clock (clk_timer).
__STATIC_INLINE void Cy_SysClk_ClkTimerSetDivider | ( | uint8_t | divider | ) |
Sets the divider for the timer clock (clk_timer).
divider | Divider value; valid range is 0 to 255. Divides the selected source (Cy_SysClk_ClkTimerSetSource) by the (value + 1). |
__STATIC_INLINE uint8_t Cy_SysClk_ClkTimerGetDivider | ( | void | ) |
Reports the divider value for the timer clock (clk_timer).
__STATIC_INLINE void Cy_SysClk_ClkTimerEnable | ( | void | ) |
Enables the timer clock (clk_timer).
The timer clock can be used as a source for SYSTICK and one or more of the energy profiler counters.
__STATIC_INLINE bool Cy_SysClk_ClkTimerIsEnabled | ( | void | ) |
Reports the Enabled/Disabled status of the Timer.
__STATIC_INLINE void Cy_SysClk_ClkTimerDisable | ( | void | ) |
Disables the timer clock (clk_timer).
uint32_t Cy_SysClk_ClkTimerGetFrequency | ( | void | ) |
Reports the frequency of the timer clock (clk_timer).