Module config

Source
Expand description

Timer 0 configuration register

Structs§

CONFIG_SPEC
Timer 0 configuration register

Type Aliases§

ALARM_EN_R
Field ALARM_EN reader - When set, the alarm is enabled. This bit is automatically cleared once an alarm occurs.
ALARM_EN_W
Field ALARM_EN writer - When set, the alarm is enabled. This bit is automatically cleared once an alarm occurs.
AUTORELOAD_R
Field AUTORELOAD reader - When set, timer %s auto-reload at alarm is enabled.
AUTORELOAD_W
Field AUTORELOAD writer - When set, timer %s auto-reload at alarm is enabled.
DIVIDER_R
Field DIVIDER reader - Timer %s clock (T%s_clk) prescaler value.
DIVIDER_W
Field DIVIDER writer - Timer %s clock (T%s_clk) prescaler value.
EDGE_INT_EN_R
Field EDGE_INT_EN reader - When set, an alarm will generate an edge type interrupt.
EDGE_INT_EN_W
Field EDGE_INT_EN writer - When set, an alarm will generate an edge type interrupt.
EN_R
Field EN reader - When set, the timer %s time-base counter is enabled.
EN_W
Field EN writer - When set, the timer %s time-base counter is enabled.
INCREASE_R
Field INCREASE reader - When set, the timer %s time-base counter will increment every clock tick. When cleared, the timer %s time-base counter will decrement.
INCREASE_W
Field INCREASE writer - When set, the timer %s time-base counter will increment every clock tick. When cleared, the timer %s time-base counter will decrement.
LEVEL_INT_EN_R
Field LEVEL_INT_EN reader - When set, an alarm will generate a level type interrupt.
LEVEL_INT_EN_W
Field LEVEL_INT_EN writer - When set, an alarm will generate a level type interrupt.
R
Register CONFIG reader
USE_XTAL_R
Field USE_XTAL reader - 1: Use XTAL_CLK as the source clock of timer group. 0: Use APB_CLK as the source clock of timer group.
USE_XTAL_W
Field USE_XTAL writer - 1: Use XTAL_CLK as the source clock of timer group. 0: Use APB_CLK as the source clock of timer group.
W
Register CONFIG writer