Type Alias W

Source
pub type W = W<CONFIG_SPEC>;
Expand description

Register CONFIG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

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.

Source

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.

Source

pub fn divcnt_rst(&mut self) -> DIVCNT_RST_W<'_, CONFIG_SPEC>

Bit 12 - When set, Timer %s ’s clock divider counter will be reset.

Source

pub fn divider(&mut self) -> DIVIDER_W<'_, CONFIG_SPEC>

Bits 13:28 - Timer %s clock (T%s_clk) prescaler value.

Source

pub fn autoreload(&mut self) -> AUTORELOAD_W<'_, CONFIG_SPEC>

Bit 29 - When set, timer %s auto-reload at alarm is enabled.

Source

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.

Source

pub fn en(&mut self) -> EN_W<'_, CONFIG_SPEC>

Bit 31 - When set, the timer %s time-base counter is enabled.