[][src]Enum lpc55s6x_pac::pint::pmcfg::CFG1R

pub enum CFG1R {
    CONSTANT_HIGH,
    STICKY_RISING_EDGE,
    STICKY_FALLING_EDGE,
    STICKY_RISING_FALLING_EDGE,
    HIGH_LEVEL,
    LOW_LEVEL,
    CONSTANT_ZERO,
    EVENT,
}
[]

Possible values of the field CFG1

Variants

CONSTANT_HIGH
[]

Constant HIGH. This bit slice always contributes to a product term match.

STICKY_RISING_EDGE
[]

Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.

STICKY_FALLING_EDGE
[]

Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.

STICKY_RISING_FALLING_EDGE
[]

Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.

HIGH_LEVEL
[]

High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.

LOW_LEVEL
[]

Low level. Match occurs when there is a low level on the specified input.

CONSTANT_ZERO
[]

Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).

EVENT
[]

Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.

Methods

impl CFG1R[src][]

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

Value of the field as raw bits

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

Checks if the value of the field is CONSTANT_HIGH

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

Checks if the value of the field is STICKY_RISING_EDGE

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

Checks if the value of the field is STICKY_FALLING_EDGE

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

Checks if the value of the field is STICKY_RISING_FALLING_EDGE

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

Checks if the value of the field is HIGH_LEVEL

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

Checks if the value of the field is LOW_LEVEL

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

Checks if the value of the field is CONSTANT_ZERO

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

Checks if the value of the field is EVENT

Trait Implementations

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src][]

This method tests for !=.

impl Copy for CFG1R[src]

impl Debug for CFG1R[src][+]

impl Clone for CFG1R[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 CFG1R

impl Sync for CFG1R

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