Skip to main content

W

Type Alias W 

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

Register TIMER%s_CONTROL writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn enable(&mut self) -> EnableW<'_, TimerControlSpec>

Bit 0 - Timer enable: 0=disabled; 1=enabled

Source

pub fn mode(&mut self) -> ModeW<'_, TimerControlSpec>

Bits 1:2 - Timer mode: 00=free running; 01=one-shot; 10=periodic

Source

pub fn int_mask(&mut self) -> IntMaskW<'_, TimerControlSpec>

Bit 3 - Interrupt mask: 0=unmasked; 1=masked

Source

pub fn rstfsm(&mut self) -> RstfsmW<'_, TimerControlSpec>

Bit 4 - Reset FSM: 1=reset timer FSM