[][src]Enum lpc55s6x_pac::ctimer0::ctcr::SELCCR

pub enum SELCCR {
    CHANNEL_0_RISING,
    CHANNEL_0_FALLING,
    CHANNEL_1_RISING,
    CHANNEL_1_FALLING,
    CHANNEL_2_RISING,
    CHANNEL_2_FALLING,
    _Reserved(u8),
}
[]

Possible values of the field SELCC

Variants

CHANNEL_0_RISING
[]

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

CHANNEL_0_FALLING
[]

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

CHANNEL_1_RISING
[]

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

CHANNEL_1_FALLING
[]

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

CHANNEL_2_RISING
[]

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

CHANNEL_2_FALLING
[]

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

_Reserved(u8)
[]

Reserved

Methods

impl SELCCR[src][]

pub fn bits(&self) -> u8[src][]

Value of the field as raw bits

pub fn is_channel_0_rising(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_0_RISING

pub fn is_channel_0_falling(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_0_FALLING

pub fn is_channel_1_rising(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_1_RISING

pub fn is_channel_1_falling(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_1_FALLING

pub fn is_channel_2_rising(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_2_RISING

pub fn is_channel_2_falling(&self) -> bool[src][]

Checks if the value of the field is CHANNEL_2_FALLING

Trait Implementations

impl PartialEq<SELCCR> for SELCCR[src][+]

impl Copy for SELCCR[src]

impl Debug for SELCCR[src][+]

impl Clone for SELCCR[src][+]

fn clone_from(&mut self, source: &Self)1.0.0[src][]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SELCCR

impl Sync for SELCCR

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src][+]

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.

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

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

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

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

type Output = T

Should always be Self