#[repr(u8)]
pub enum CH2COMCTL_A {
    FROZEN,
    ACTIVEONMATCH,
    INACTIVEONMATCH,
    TOGGLE,
    FORCEINACTIVE,
    FORCEACTIVE,
    PWMMODE0,
    PWMMODE1,
}
Expand description

Channel 0 compare output control

Value on reset: 0

Variants

FROZEN

0: The comparison between the output compare register CHyCV and the counter CNT has no effect on the outputs

ACTIVEONMATCH

1: Set channel to active level on match. OxCPRE signal is forced high when the counter matches the capture/compare register CHyCV

INACTIVEONMATCH

2: Set channel to inactive level on match. OxCPRE signal is forced low when the counter matches the capture/compare register CHyCV

TOGGLE

3: OxCPRE toggles when CNT=CHyCV

FORCEINACTIVE

4: OxCPRE is forced low

FORCEACTIVE

5: OxCPRE is forced high

PWMMODE0

6: In upcounting, channel is active as long as CNT<CHyCV else inactive. In downcounting, channel is inactive as long as CNT>CHyCV else active

PWMMODE1

7: Inversely to PwmMode0

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.