Type Alias nrf52840_pac::timer0::mode::MODE_R

source ·
pub type MODE_R = FieldReader<u8, MODE_A>;
Expand description

Field MODE reader - Timer mode

Aliased Type§

struct MODE_R { /* private fields */ }

Implementations§

source§

impl MODE_R

source

pub fn variant(&self) -> Option<MODE_A>

Get enumerated values variant

source

pub fn is_timer(&self) -> bool

Checks if the value of the field is TIMER

source

pub fn is_counter(&self) -> bool

Checks if the value of the field is COUNTER

source

pub fn is_low_power_counter(&self) -> bool

Checks if the value of the field is LOW_POWER_COUNTER