![]() |
Synergy Software Package User's Manual
|
Interface for timer functions. More...
Data Structures | |
| struct | timer_callback_args_t |
| struct | timer_info_t |
| struct | timer_cfg_t |
| struct | timer_api_t |
| struct | timer_instance_t |
Typedefs | |
| typedef uint32_t | timer_size_t |
| typedef void | timer_ctrl_t |
| typedef timer_size_t | timer_period_t |
Interface for timer functions.
The general timer interface provides standard timer functionality including periodic mode, one-shot mode, and free-running timer mode. After each timer cycle (overflow or underflow), an interrupt can be triggered.
If an instance supports output compare mode, it is provided in the extension configuration timer_on_<instance>_cfg_t defined in r_<instance>.h.
Implemented by:
See also: Input Capture Interface
Related SSP architecture topics:
Timer Interface description: Timer Driver on r_agt and Timer Driver on r_gpt
| typedef void timer_ctrl_t |
Timer control block. Allocate an instance specific control block to pass into the timer API calls.
| typedef timer_size_t timer_period_t |
DEPRECATED: Recommend using timer_size_t for period.
| typedef uint32_t timer_size_t |
Largest supported timer size. Currently up to 32-bit timers are supported. If a 16-bit timer is used, only the bottom 16 bits of any timer_size_t parameter can be used. Passing in values larger than 16 bits would result in an error.
| enum timer_direction_t |
| enum timer_event_t |
| enum timer_mode_t |
| enum timer_pwm_unit_t |
| enum timer_status_t |
Possible status values returned by timer_api_t::infoGet.
| Enumerator | |
|---|---|
| TIMER_STATUS_COUNTING | Timer is running. |
| TIMER_STATUS_STOPPED | Timer is stopped. |
| enum timer_unit_t |
Units of timer period value.
| enum timer_variant_t |