#[repr(u8)]
pub enum SMC_A {
DISABLED,
QUADRATUREDECODERMODE0,
QUADRATUREDECODERMODE1,
QUADRATUREDECODERMODE2,
RESTARTMODE,
PAUSEMODE,
EVENTMODE,
EXTERNALCLOCKMODE,
}
Expand description
Slave mode control
Value on reset: 0
Variants
DISABLED
0: Slave mode disabled - if CEN=1 then the prescaler is clocked directly by the internal clock.
QUADRATUREDECODERMODE0
1: Quadrature decoder mode 0 - Counter counts up/down on CI1FE1 edge depending on CI0FE0 level.
QUADRATUREDECODERMODE1
2: Quadrature decoder mode 1 - Counter counts up/down on CI0FE0 edge depending on CI1FE1 level.
QUADRATUREDECODERMODE2
3: Quadrature decoder mode 2 - Counter counts up/down on both CI0FE0 and CI1FE1 edges depending on the level of the other input.
RESTARTMODE
4: Restart Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers.
PAUSEMODE
5: Pause Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled.
EVENTMODE
6: Event Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled.
EXTERNALCLOCKMODE
7: External Clock Mode 0 - Rising edges of the selected trigger (TRGI) clock the counter.
Trait Implementations
impl Copy for SMC_A
impl StructuralPartialEq for SMC_A
Auto Trait Implementations
impl RefUnwindSafe for SMC_A
impl Send for SMC_A
impl Sync for SMC_A
impl Unpin for SMC_A
impl UnwindSafe for SMC_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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