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 (TIMER_V150, per vendor control_reg_mode_v150_t): 0=one-shot; 1=periodic; 3=free-run (2 is a one-shot alias)

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 one_shot(self) -> &'a mut W<REG>

One-shot mode

Source

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

Periodic mode

Source

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

Free-running mode