pub enum Alignment {
Edge = 0,
Center1 = 1,
Center2 = 2,
Center3 = 3,
}
Expand description
Output alignment. Sets TIMx_CR1
register, CMS
field.
Variants§
Edge = 0
Edge-aligned mode. The counter counts up or down depending on the direction bit (DIR).
Center1 = 1
Center-aligned mode 1. The counter counts up and down alternatively. Output compare interrupt flags of channels configured in output (CCxS=00 in TIMx_CCMRx register) are set only when the counter is counting down.
Center2 = 2
Center-aligned mode 2. The counter counts up and down alternatively. Output compare interrupt flags of channels configured in output (CCxS=00 in TIMx_CCMRx register) are set only when the counter is counting up.
Center3 = 3
Center-aligned mode 3. The counter counts up and down alternatively. Output compare interrupt flags of channels configured in output (CCxS=00 in TIMx_CCMRx register) are set both when the counter is counting up or down.