Skip to main content

ModeR

Type Alias ModeR 

Source
pub type ModeR = FieldReader<Mode>;
Expand description

Field mode reader - 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 ModeR { /* private fields */ }

Implementations§

Source§

impl ModeR

Source

pub const fn variant(&self) -> Option<Mode>

Get enumerated values variant

Source

pub fn is_one_shot(&self) -> bool

One-shot mode

Source

pub fn is_periodic(&self) -> bool

Periodic mode

Source

pub fn is_free_run(&self) -> bool

Free-running mode