SmartSnippets DA1459x SDK
Data Fields

Timer configuration. More...

#include <hw_timer.h>

Data Fields

HW_TIMER_CLK_SRC clk_src
 
uint8_t prescaler
 
HW_TIMER_MODE mode
 
timer_config_pwm pwm
 
timer_config_timer_capture timer
 
timer_config_oneshot oneshot
 

Detailed Description

Timer configuration.

Only one of timer and oneshot configuration can be set since they are stored in the same union (and will overwrite each other). Proper configuration structure is selected depending on timer mode set.

See also
timer_config_timer_capture
timer_config_oneshot
timer_config_pwm
hw_timer_configure

Field Documentation

◆ clk_src

HW_TIMER_CLK_SRC timer_config::clk_src

clock source

◆ mode

HW_TIMER_MODE timer_config::mode

timer/capture mode or oneshot mode

◆ oneshot

timer_config_oneshot timer_config::oneshot

configuration for oneshot mode. Only valid for Timer and Timer2

◆ prescaler

uint8_t timer_config::prescaler

clock prescaler

◆ pwm

timer_config_pwm timer_config::pwm

PWM configuration

◆ timer

timer_config_timer_capture timer_config::timer

configuration for timer/capture mode


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