Enum lpc81x_pac::lpc812::sct0::ev::ev_ctrl::DIRECTION_A
source · #[repr(u8)]
pub enum DIRECTION_A {
DIRECTION_INDEPENDENT,
COUNTING_UP,
COUNTING_DOWN,
}
Expand description
Direction qualifier for event generation. This field only applies when the counters are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is reserved.
Value on reset: 0
Variants§
DIRECTION_INDEPENDENT
0: Direction independent. This event is triggered regardless of the count direction.
COUNTING_UP
1: Counting up. This event is triggered only during up-counting when BIDIR = 1.
COUNTING_DOWN
2: Counting down. This event is triggered only during down-counting when BIDIR = 1.
Trait Implementations§
source§impl Clone for DIRECTION_A
impl Clone for DIRECTION_A
source§fn clone(&self) -> DIRECTION_A
fn clone(&self) -> DIRECTION_A
Returns a copy 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 Debug for DIRECTION_A
impl Debug for DIRECTION_A
source§impl From<DIRECTION_A> for u8
impl From<DIRECTION_A> for u8
source§fn from(variant: DIRECTION_A) -> Self
fn from(variant: DIRECTION_A) -> Self
Converts to this type from the input type.