Struct lpc55_pac::ctimer0::ctcr::CTMODE_R [−][src]
pub struct CTMODE_R(_);
Field CTMODE
reader - Counter/Timer Mode This field selects which rising APB bus clock edges can increment Timer’s Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC is incremented when the Prescale Counter matches the Prescale Register.
Implementations
impl CTMODE_R
[src]
impl CTMODE_R
[src]pub fn variant(&self) -> CTMODE_A
[src]
Get enumerated values variant
pub fn is_timer(&self) -> bool
[src]
Checks if the value of the field is TIMER
pub fn is_counter_rising_edge(&self) -> bool
[src]
Checks if the value of the field is COUNTER_RISING_EDGE
pub fn is_counter_falling_edge(&self) -> bool
[src]
Checks if the value of the field is COUNTER_FALLING_EDGE
pub fn is_counter_dual_edge(&self) -> bool
[src]
Checks if the value of the field is COUNTER_DUAL_EDGE
Methods from Deref<Target = FieldReader<u8, CTMODE_A>>
pub fn bit(&self) -> bool
[src]
Value of the field as raw bits.
pub fn bit_is_clear(&self) -> bool
[src]
Returns true
if the bit is clear (0).
pub fn bit_is_set(&self) -> bool
[src]
Returns true
if the bit is set (1).