Enum gd32f1::gd32f130::timer14::chctl0_output::CH1COMCTL_A[][src]

#[repr(u8)]pub enum CH1COMCTL_A {
    FROZEN,
    ACTIVEONMATCH,
    INACTIVEONMATCH,
    TOGGLE,
    FORCEINACTIVE,
    FORCEACTIVE,
    PWMMODE1,
    PWMMODE2,
}

Channel 1 output compare mode

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

PWMMODE1

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

PWMMODE2

7: Inversely to PwmMode1

Trait Implementations

impl Clone for CH1COMCTL_A[src]

impl Copy for CH1COMCTL_A[src]

impl Debug for CH1COMCTL_A[src]

impl PartialEq<CH1COMCTL_A> for CH1COMCTL_A[src]

impl StructuralPartialEq for CH1COMCTL_A[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.