#[repr(u8)]
pub enum CFG1_A {
    CONSTANT_HIGH,
    STICKY_RISING_EDGE,
    STICKY_FALLING_EDGE,
    STICKY_RISING_FALLING_EDGE,
    HIGH_LEVEL,
    LOW_LEVEL,
    CONSTANT_ZERO,
    EVENT,
}
Expand description

Specifies the match contribution condition for bit slice 1.

Value on reset: 0

Variants§

§

CONSTANT_HIGH

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

§

STICKY_RISING_EDGE

1: 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

2: 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

3: 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

4: 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

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

§

CONSTANT_ZERO

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

§

EVENT

7: 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.

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
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.