pub type W = W<CONFIG_SPEC>;
Expand description
Register CONFIG
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn use_xtal(&mut self) -> USE_XTAL_W<'_, CONFIG_SPEC>
pub fn use_xtal(&mut self) -> USE_XTAL_W<'_, CONFIG_SPEC>
Bit 9 - 1: Use XTAL_CLK as the source clock of timer group. 0: Use APB_CLK as the source clock of timer group.
Sourcepub fn alarm_en(&mut self) -> ALARM_EN_W<'_, CONFIG_SPEC>
pub fn alarm_en(&mut self) -> ALARM_EN_W<'_, CONFIG_SPEC>
Bit 10 - When set, the alarm is enabled. This bit is automatically cleared once an alarm occurs.
Sourcepub fn divcnt_rst(&mut self) -> DIVCNT_RST_W<'_, CONFIG_SPEC>
pub fn divcnt_rst(&mut self) -> DIVCNT_RST_W<'_, CONFIG_SPEC>
Bit 12 - When set, Timer %s ’s clock divider counter will be reset.
Sourcepub fn divider(&mut self) -> DIVIDER_W<'_, CONFIG_SPEC>
pub fn divider(&mut self) -> DIVIDER_W<'_, CONFIG_SPEC>
Bits 13:28 - Timer %s clock (T%s_clk) prescaler value.
Sourcepub fn autoreload(&mut self) -> AUTORELOAD_W<'_, CONFIG_SPEC>
pub fn autoreload(&mut self) -> AUTORELOAD_W<'_, CONFIG_SPEC>
Bit 29 - When set, timer %s auto-reload at alarm is enabled.
Sourcepub fn increase(&mut self) -> INCREASE_W<'_, CONFIG_SPEC>
pub fn increase(&mut self) -> INCREASE_W<'_, CONFIG_SPEC>
Bit 30 - When set, the timer %s time-base counter will increment every clock tick. When cleared, the timer %s time-base counter will decrement.
Sourcepub fn en(&mut self) -> EN_W<'_, CONFIG_SPEC>
pub fn en(&mut self) -> EN_W<'_, CONFIG_SPEC>
Bit 31 - When set, the timer %s time-base counter is enabled.