#[repr(u8)]pub enum MatchCondition {
CONSTANT_HIGH = 0,
STICKY_RISING_EDGE = 1,
STICKY_FALLING_EDGE = 2,
STICKY_EITHER_EDGE = 3,
HIGH_LEVEL = 4,
LOW_LEVEL = 5,
CONSTANT_ZERO = 6,
EVENT = 7,
}Variants§
CONSTANT_HIGH = 0
Always contributes to a product-term match.
STICKY_RISING_EDGE = 1
Sticky rising edge; write PMCFG or PMSRC to clear history.
STICKY_FALLING_EDGE = 2
Sticky falling edge; write PMCFG or PMSRC to clear history.
STICKY_EITHER_EDGE = 3
Sticky rising or falling edge; write PMCFG or PMSRC to clear history.
HIGH_LEVEL = 4
Input is HIGH.
LOW_LEVEL = 5
Input is LOW.
CONSTANT_ZERO = 6
Never matches; required for unused slices.
EVENT = 7
Nonsticky rising or falling edge; see CFG timing wording conflict.
Implementations§
Trait Implementations§
Source§impl Clone for MatchCondition
impl Clone for MatchCondition
Source§fn clone(&self) -> MatchCondition
fn clone(&self) -> MatchCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<MatchCondition> for u8
impl From<MatchCondition> for u8
Source§fn from(val: MatchCondition) -> u8
fn from(val: MatchCondition) -> u8
Converts to this type from the input type.
Source§impl From<u8> for MatchCondition
impl From<u8> for MatchCondition
Source§fn from(val: u8) -> MatchCondition
fn from(val: u8) -> MatchCondition
Converts to this type from the input type.
Source§impl Ord for MatchCondition
impl Ord for MatchCondition
Source§fn cmp(&self, other: &MatchCondition) -> Ordering
fn cmp(&self, other: &MatchCondition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MatchCondition
impl PartialEq for MatchCondition
Source§impl PartialOrd for MatchCondition
impl PartialOrd for MatchCondition
impl Copy for MatchCondition
impl Eq for MatchCondition
impl StructuralPartialEq for MatchCondition
Auto Trait Implementations§
impl Freeze for MatchCondition
impl RefUnwindSafe for MatchCondition
impl Send for MatchCondition
impl Sync for MatchCondition
impl Unpin for MatchCondition
impl UnwindSafe for MatchCondition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more