[][src]Enum lpc54606_pac::ctimer0::ctcr::CTMODE_A

#[repr(u8)]pub enum CTMODE_A {
    TIMER,
    COUNTER_RISING_EDGE,
    COUNTER_FALLING_EDGE,
    COUNTER_DUAL_EDGE,
}

Counter/Timer Mode This field selects which rising APB bus clock edges can increment Timer's Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC is incremented when the Prescale Counter matches the Prescale Register.

Value on reset: 0

Variants

TIMER

0: Timer Mode. Incremented every rising APB bus clock edge.

COUNTER_RISING_EDGE

1: Counter Mode rising edge. TC is incremented on rising edges on the CAP input selected by bits 3:2.

COUNTER_FALLING_EDGE

2: Counter Mode falling edge. TC is incremented on falling edges on the CAP input selected by bits 3:2.

COUNTER_DUAL_EDGE

3: Counter Mode dual edge. TC is incremented on both edges on the CAP input selected by bits 3:2.

Trait Implementations

impl Clone for CTMODE_A[src]

impl Copy for CTMODE_A[src]

impl Debug for CTMODE_A[src]

impl From<CTMODE_A> for u8[src]

impl PartialEq<CTMODE_A> for CTMODE_A[src]

impl StructuralPartialEq for CTMODE_A[src]

Auto Trait Implementations

impl Send for CTMODE_A

impl Sync for CTMODE_A

impl Unpin for CTMODE_A

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> Same<T> for T

type Output = T

Should always be Self

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.