#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.