Skip to main content

W

Type Alias W 

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

Register tmr%s_ctrl writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn tmr_en(&mut self) -> TMR_EN_W<'_, TMR_CTRL_SPEC>

Bit 0

Source

pub fn tmr_reload(&mut self) -> TMR_RELOAD_W<'_, TMR_CTRL_SPEC>

Bit 1

Source

pub fn tmr_clk_src(&mut self) -> TMR_CLK_SRC_W<'_, TMR_CTRL_SPEC>

Bits 2:3

Source

pub fn tmr_clk_pres(&mut self) -> TMR_CLK_PRES_W<'_, TMR_CTRL_SPEC>

Bits 4:6

Source

pub fn tmr_mode(&mut self) -> TMR_MODE_W<'_, TMR_CTRL_SPEC>

Bit 7

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual