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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.