pub struct CTMODE_R(_);
Expand description
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
sourceimpl CTMODE_R
impl CTMODE_R
sourcepub fn is_counter_rising_edge(&self) -> bool
pub fn is_counter_rising_edge(&self) -> bool
Checks if the value of the field is COUNTER_RISING_EDGE
sourcepub fn is_counter_falling_edge(&self) -> bool
pub fn is_counter_falling_edge(&self) -> bool
Checks if the value of the field is COUNTER_FALLING_EDGE
sourcepub fn is_counter_dual_edge(&self) -> bool
pub fn is_counter_dual_edge(&self) -> bool
Checks if the value of the field is COUNTER_DUAL_EDGE
Methods from Deref<Target = FieldReader<u8, CTMODE_A>>
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0).
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CTMODE_R
impl Send for CTMODE_R
impl Sync for CTMODE_R
impl Unpin for CTMODE_R
impl UnwindSafe for CTMODE_R
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more