Configuration struct for the Peripheral. More...
Configuration struct for the Peripheral.
#include <tim.h>
Public Types | |
enum class | Peripheral { TIM_2 = 0 , TIM_3 , TIM_4 , TIM_5 } |
Hardware Timer to configure, and use. More... | |
enum class | CounterDir { UP = 0 , DOWN } |
Direction of the auto-reload counter. More... | |
Public Member Functions | |
Config () | |
Public Attributes | |
Peripheral | periph |
CounterDir | dir |
uint32_t | period |
period in ticks at TIM frequency that counter will reset based on dir | |
bool | enable_irq |
Direction of the auto-reload counter.
Enumerator | |
---|---|
UP | |
DOWN |
|
inline |
CounterDir daisy::TimerHandle::Config::dir |
Counter direction
bool daisy::TimerHandle::Config::enable_irq |
Enable interrupt for user based callback
uint32_t daisy::TimerHandle::Config::period |
period in ticks at TIM frequency that counter will reset based on dir
Peripheral daisy::TimerHandle::Config::periph |
Hardware Peripheral