Type Definition lpc81x_pac::lpc812::sct0::ev::ev_ctrl::DIRECTION_W
source · pub type DIRECTION_W<'a, const O: u8> = FieldWriter<'a, u32, EV_CTRL_SPEC, u8, DIRECTION_A, 2, O>;
Expand description
Field DIRECTION
writer - 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.
Implementations§
source§impl<'a, const O: u8> DIRECTION_W<'a, O>
impl<'a, const O: u8> DIRECTION_W<'a, O>
sourcepub fn direction_independent(self) -> &'a mut W
pub fn direction_independent(self) -> &'a mut W
Direction independent. This event is triggered regardless of the count direction.
sourcepub fn counting_up(self) -> &'a mut W
pub fn counting_up(self) -> &'a mut W
Counting up. This event is triggered only during up-counting when BIDIR = 1.
sourcepub fn counting_down(self) -> &'a mut W
pub fn counting_down(self) -> &'a mut W
Counting down. This event is triggered only during down-counting when BIDIR = 1.