Timer device configuration. More...
Timer device configuration.
Timer configuration data.
Configuration type of a timer device timer_conf_t::dev, having timer_conf_t::ch_numof number of channels, each one modeled as timer_channel_conf_t.
Timer configuration options.
Override resolution options.
Timer configuration.
All timers can be derived from TC0_t struct. Need check at runtime the type and number of channels to perform all operations.
General purpose timers (GPT[0-3]) are configured consecutively and in order (without gaps) starting from GPT0, i.e. if multiple timers are enabled.
Define timer configuration values
Definition at line 264 of file periph_cpu.h.
#include <periph_cpu.h>
Data Fields | |
TC0_t * | dev |
Pointer to the used as Timer device. More... | |
pwr_reduction_t | pwr |
Power Management. More... | |
timer_type_t | type |
Timer Type. More... | |
cpu_int_lvl_t | int_lvl [TIMER_CH_MAX_NUMOF] |
Interrupt channels level. More... | |
uint_fast8_t | chn |
number of channels More... | |
uint_fast8_t | cfg |
timer config word More... | |
timer_dev_t | prescaler |
the lower neighboring timer (not initialized for LETIMER) More... | |
timer_dev_t | timer |
the higher numbered timer More... | |
IRQn_Type | irq |
number of the higher timer IRQ channel More... | |
uint8_t | channel_numof |
number of channels per timer More... | |
TIMER_Type * | dev |
timer device More... | |
uint32_t | max |
maximum value to count to (16/32 bit) More... | |
uint32_t | rcu_mask |
corresponding bit in the RCC register More... | |
uint8_t | bus |
APBx bus the timer is clock from. More... | |
uint8_t | irqn |
global IRQ channel More... | |
uint32_t | dev |
Address of timer base. More... | |
int | irqn |
Number of the higher timer IRQ channel. More... | |
uint32_t | sysctl |
Address of timer system control. More... | |
uint32_t | intbase |
Interrupt base of timer. More... | |
int | channels |
Number of channels for the timer. More... | |
NRF_TIMER_Type * | dev |
timer device More... | |
uint8_t | channels |
number of hardware channels minus one More... | |
uint8_t | bitmode |
counter width More... | |
const timer_channel_conf_t * | ch |
pointer to timer channel configuration More... | |
uint8_t | ch_numof |
number of timer channels More... | |
Tc * | dev |
timer device More... | |
uint8_t | id_ch0 |
ID of the timer's first channel. More... | |
TIM_TypeDef * | dev |
timer device More... | |
uint32_t | rcc_mask |
corresponding bit in the RCC register More... | |
uint8_t timer_conf_t::bitmode |
counter width
Definition at line 251 of file periph_cpu_common.h.
uint8_t timer_conf_t::bus |
APBx bus the timer is clock from.
Definition at line 260 of file periph_cpu.h.
uint_fast8_t timer_conf_t::cfg |
timer config word
Definition at line 312 of file periph_cpu.h.
const timer_channel_conf_t* timer_conf_t::ch |
pointer to timer channel configuration
Definition at line 431 of file periph_cpu.h.
uint8_t timer_conf_t::ch_numof |
number of timer channels
Definition at line 432 of file periph_cpu.h.
uint8_t timer_conf_t::channel_numof |
number of channels per timer
number of channels, 0 is alias for TIMER_CHANNEL_NUMOF
Definition at line 560 of file periph_cpu.h.
int timer_conf_t::channels |
Number of channels for the timer.
Definition at line 117 of file periph_cpu.h.
uint8_t timer_conf_t::channels |
number of hardware channels minus one
The last hardware channels is implicitly used by timer_read() and not available to the user. This value, hence, is the number of channels available to the user.
Definition at line 250 of file periph_cpu_common.h.
uint_fast8_t timer_conf_t::chn |
number of channels
Definition at line 311 of file periph_cpu.h.
TIMER_Type * timer_conf_t::dev |
Pointer to the used as Timer device.
pointer to timer base address
Definition at line 265 of file periph_cpu.h.
TIMER_Type* timer_conf_t::dev |
uint32_t timer_conf_t::dev |
Address of timer base.
Definition at line 112 of file periph_cpu.h.
NRF_TIMER_Type* timer_conf_t::dev |
timer device
Definition at line 242 of file periph_cpu_common.h.
Tc* timer_conf_t::dev |
timer device
Definition at line 199 of file periph_cpu.h.
TIM_TypeDef* timer_conf_t::dev |
timer device
Definition at line 51 of file cpu_timer.h.
uint8_t timer_conf_t::id_ch0 |
ID of the timer's first channel.
Definition at line 200 of file periph_cpu.h.
cpu_int_lvl_t timer_conf_t::int_lvl[TIMER_CH_MAX_NUMOF] |
Interrupt channels level.
Definition at line 268 of file periph_cpu.h.
uint32_t timer_conf_t::intbase |
Interrupt base of timer.
Definition at line 116 of file periph_cpu.h.
IRQn_Type timer_conf_t::irq |
number of the higher timer IRQ channel
Definition at line 559 of file periph_cpu.h.
uint8_t timer_conf_t::irqn |
int timer_conf_t::irqn |
Number of the higher timer IRQ channel.
Definition at line 114 of file periph_cpu.h.
uint32_t timer_conf_t::max |
maximum value to count to (16/32 bit)
Max tick value of timer.
Definition at line 258 of file periph_cpu.h.
timer_dev_t timer_conf_t::prescaler |
the lower neighboring timer (not initialized for LETIMER)
Definition at line 557 of file periph_cpu.h.
pwr_reduction_t timer_conf_t::pwr |
Power Management.
Definition at line 266 of file periph_cpu.h.
uint32_t timer_conf_t::rcc_mask |
corresponding bit in the RCC register
Definition at line 53 of file cpu_timer.h.
uint32_t timer_conf_t::rcu_mask |
corresponding bit in the RCC register
Definition at line 259 of file periph_cpu.h.
uint32_t timer_conf_t::sysctl |
Address of timer system control.
Definition at line 115 of file periph_cpu.h.
timer_dev_t timer_conf_t::timer |
the higher numbered timer
Definition at line 558 of file periph_cpu.h.
timer_type_t timer_conf_t::type |
Timer Type.
Definition at line 267 of file periph_cpu.h.