pub struct W(_);
Expand description
Register EV_CTRL
writer
Implementations
sourceimpl W
impl W
sourcepub fn matchsel(&mut self) -> MATCHSEL_W<'_>
pub fn matchsel(&mut self) -> MATCHSEL_W<'_>
Bits 0:3 - Selects the Match register associated with this event (if any). A match can occur only when the counter selected by the HEVENT bit is running.
sourcepub fn hevent(&mut self) -> HEVENT_W<'_>
pub fn hevent(&mut self) -> HEVENT_W<'_>
Bit 4 - Select L/H counter. Do not set this bit if UNIFY = 1.
sourcepub fn iosel(&mut self) -> IOSEL_W<'_>
pub fn iosel(&mut self) -> IOSEL_W<'_>
Bits 6:9 - Selects the input or output signal number associated with this event (if any). Do not select an input in this register if CKMODE is 1x. In this case the clock input is an implicit ingredient of every event.
sourcepub fn iocond(&mut self) -> IOCOND_W<'_>
pub fn iocond(&mut self) -> IOCOND_W<'_>
Bits 10:11 - Selects the I/O condition for event n. (The detection of edges on outputs lag the conditions that switch the outputs by one SCT clock). In order to guarantee proper edge/state detection, an input must have a minimum pulse width of at least one SCT clock period .
sourcepub fn combmode(&mut self) -> COMBMODE_W<'_>
pub fn combmode(&mut self) -> COMBMODE_W<'_>
Bits 12:13 - Selects how the specified match and I/O condition are used and combined.
sourcepub fn stateld(&mut self) -> STATELD_W<'_>
pub fn stateld(&mut self) -> STATELD_W<'_>
Bit 14 - This bit controls how the STATEV value modifies the state selected by HEVENT when this event is the highest-numbered event occurring for that state.
sourcepub fn statev(&mut self) -> STATEV_W<'_>
pub fn statev(&mut self) -> STATEV_W<'_>
Bits 15:19 - This value is loaded into or added to the state selected by HEVENT, depending on STATELD, when this event is the highest-numbered event occurring for that state. If STATELD and STATEV are both zero, there is no change to the STATE value.
sourcepub fn matchmem(&mut self) -> MATCHMEM_W<'_>
pub fn matchmem(&mut self) -> MATCHMEM_W<'_>
Bit 20 - If this bit is one and the COMBMODE field specifies a match component to the triggering of this event, then a match is considered to be active whenever the counter value is GREATER THAN OR EQUAL TO the value specified in the match register when counting up, LESS THEN OR EQUAL TO the match value when counting down. If this bit is zero, a match is only be active during the cycle when the counter is equal to the match value.
sourcepub fn direction(&mut self) -> DIRECTION_W<'_>
pub fn direction(&mut self) -> DIRECTION_W<'_>
Bits 21:22 - 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.
Methods from Deref<Target = W<EV_CTRL_SPEC>>
Trait Implementations
sourceimpl From<W<EV_CTRL_SPEC>> for W
impl From<W<EV_CTRL_SPEC>> for W
sourcefn from(writer: W<EV_CTRL_SPEC>) -> Self
fn from(writer: W<EV_CTRL_SPEC>) -> Self
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more