Skip to main content

ModeW

Type Alias ModeW 

Source
pub type ModeW<'a, REG> = FieldWriter<'a, REG, 2, Mode>;
Expand description

Field mode writer - Timer mode: 00=free running; 01=one-shot; 10=periodic

Aliased Type§

pub struct ModeW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> ModeW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

Source

pub fn free_running(self) -> &'a mut W<REG>

Free-running mode

Source

pub fn one_shot(self) -> &'a mut W<REG>

One-shot mode

Source

pub fn periodic(self) -> &'a mut W<REG>

Periodic mode