[−][src]Enum lpc55s6x_pac::pint::pmcfg::CFG2R
Possible values of the field CFG2
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 CFG2R
[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<CFG2R> for CFG2R
[src][+]
impl Copy for CFG2R
[src]
impl Debug for CFG2R
[src][+]
impl Clone for CFG2R
[src][+]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self