Enum nucleo_f401re::tim3::cr1::CMSR
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