pub enum CMSR {
EDGEALIGNED,
CENTERALIGNED1,
CENTERALIGNED2,
CENTERALIGNED3,
}
Expand description
Possible values of the field CMS
Variants
EDGEALIGNED
The counter counts up or down depending on the direction bit
CENTERALIGNED1
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down.
CENTERALIGNED2
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up.
CENTERALIGNED3
The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down.
Implementations
impl CMSR
impl CMSR
pub fn is_edge_aligned(&self) -> bool
pub fn is_edge_aligned(&self) -> bool
Checks if the value of the field is EDGEALIGNED
pub fn is_center_aligned1(&self) -> bool
pub fn is_center_aligned1(&self) -> bool
Checks if the value of the field is CENTERALIGNED1
pub fn is_center_aligned2(&self) -> bool
pub fn is_center_aligned2(&self) -> bool
Checks if the value of the field is CENTERALIGNED2
pub fn is_center_aligned3(&self) -> bool
pub fn is_center_aligned3(&self) -> bool
Checks if the value of the field is CENTERALIGNED3
Trait Implementations
impl Copy for CMSR
impl StructuralPartialEq for CMSR
Auto Trait Implementations
impl RefUnwindSafe for CMSR
impl Send for CMSR
impl Sync for CMSR
impl Unpin for CMSR
impl UnwindSafe for CMSR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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