Type Alias R

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

Register CONFIG reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn use_xtal(&self) -> USE_XTAL_R

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(&self) -> ALARM_EN_R

Bit 10 - When set, the alarm is enabled. This bit is automatically cleared once an alarm occurs.

Source

pub fn divider(&self) -> DIVIDER_R

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

Source

pub fn autoreload(&self) -> AUTORELOAD_R

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

Source

pub fn increase(&self) -> INCREASE_R

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(&self) -> EN_R

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