pub enum CMSR {
EDGE,
CENTERDOWN,
CENTERUP,
CENTERBOTH,
}Expand description
Possible values of the field CMS
Variants§
EDGE
The counter counts up or down depending on the direction bit (DIR)
CENTERDOWN
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down
CENTERUP
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up
CENTERBOTH
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up or down
Implementations§
source§impl CMSR
impl CMSR
sourcepub fn is_center_down(&self) -> bool
pub fn is_center_down(&self) -> bool
Checks if the value of the field is CENTERDOWN
sourcepub fn is_center_up(&self) -> bool
pub fn is_center_up(&self) -> bool
Checks if the value of the field is CENTERUP
sourcepub fn is_center_both(&self) -> bool
pub fn is_center_both(&self) -> bool
Checks if the value of the field is CENTERBOTH