#[repr(u8)]pub enum Sm1ctrlCompmode {
EQUAL_TO = 0,
EQUAL_TO_OR_GREATER_THAN = 1,
}Variants§
EQUAL_TO = 0
The VAL* registers and the PWM counter are compared using an “equal to” method. This means that PWM edges are only produced when the counter is equal to one of the VAL* register values. This implies that a PWM_A output that is high at the end of a period maintains this state until a match with VAL3 clears the output in the following period.
EQUAL_TO_OR_GREATER_THAN = 1
The VAL* registers and the PWM counter are compared using an “equal to or greater than” method. This means that PWM edges are produced when the counter is equal to or greater than one of the VAL* register values. This implies that a PWM_A output that is high at the end of a period could go low at the start of the next period if the starting counter value is greater than (but not necessarily equal to) the new VAL3 value.
Implementations§
Trait Implementations§
Source§impl Clone for Sm1ctrlCompmode
impl Clone for Sm1ctrlCompmode
Source§fn clone(&self) -> Sm1ctrlCompmode
fn clone(&self) -> Sm1ctrlCompmode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more