Synergy Software Package User's Manual

#include <r_timer_api.h>

Data Fields

timer_mode_t mode
 Select enumerated value from timer_mode_t.
 
uint32_t period
 
timer_unit_t unit
 Units of timer_cfg_t::period.
 
timer_size_t duty_cycle
 Duty cycle in units timer_cfg_t::duty_cycle_unit.
 
timer_pwm_unit_t duty_cycle_unit
 Units of timer_cfg_t::duty_cycle.
 
uint8_t channel
 
uint8_t irq_ipl
 Timer interrupt priority.
 
bool autostart
 
void(* p_callback )(timer_callback_args_t *p_args)
 
void const * p_context
 
void const * p_extend
 Extension parameter for hardware specific settings.
 

Detailed Description

User configuration structure, used in open function

Field Documentation

◆ autostart

bool timer_cfg_t::autostart

Whether to start during Open call or not. True: Start during open. False: Don't start during open.

◆ channel

uint8_t timer_cfg_t::channel

Select a channel corresponding to the channel number of the hardware.

◆ p_callback

void(* timer_cfg_t::p_callback) (timer_callback_args_t *p_args)

Callback provided when a timer ISR occurs. Set to NULL for no CPU interrupt.

◆ p_context

void const* timer_cfg_t::p_context

Placeholder for user data. Passed to the user callback in timer_callback_args_t.

◆ period

uint32_t timer_cfg_t::period

Defines when the timer should expire. For a free running counter, set to TIMER_MAX_CLOCK with unit TIMER_UNIT_PERIOD_RAW_COUNTS


The documentation for this struct was generated from the following file: