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

#[repr(u8)]
pub enum SELCC_A {
    CHANNEL_0_RISING,
    CHANNEL_0_FALLING,
    CHANNEL_1_RISING,
    CHANNEL_1_FALLING,
    CHANNEL_2_RISING,
    CHANNEL_2_FALLING,
    CHANNEL_3_RISING,
    CHANNEL_3_FALLING,
}
Expand description

Edge select. When bit 4 is 1, these bits select which capture input edge will cause the timer and prescaler to be cleared. These bits have no effect when bit 4 is low. Values 0x2 to 0x3 and 0x6 to 0x7 are reserved.

Value on reset: 0

Variants

CHANNEL_0_RISING

0: Channel 0 Rising Edge. Rising edge of the signal on capture channel 0 clears the timer (if bit 4 is set).

CHANNEL_0_FALLING

1: Channel 0 Falling Edge. Falling edge of the signal on capture channel 0 clears the timer (if bit 4 is set).

CHANNEL_1_RISING

2: Channel 1 Rising Edge. Rising edge of the signal on capture channel 1 clears the timer (if bit 4 is set).

CHANNEL_1_FALLING

3: Channel 1 Falling Edge. Falling edge of the signal on capture channel 1 clears the timer (if bit 4 is set).

CHANNEL_2_RISING

4: Channel 2 Rising Edge. Rising edge of the signal on capture channel 2 clears the timer (if bit 4 is set).

CHANNEL_2_FALLING

5: Channel 2 Falling Edge. Falling edge of the signal on capture channel 2 clears the timer (if bit 4 is set).

CHANNEL_3_RISING

6: Channel 2 Rising Edge. Rising edge of the signal on capture channel 2 clears the timer (if bit 4 is set).

CHANNEL_3_FALLING

7: Channel 2 Falling Edge. Falling edge of the signal on capture channel 2 clears the timer (if bit 4 is set).

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.