pub type W = W<COMPCTRL_SPEC>;
Expand description
Register COMPCTRL[%s]
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn enable(&mut self) -> ENABLE_W<'_, COMPCTRL_SPEC, 1>
pub fn enable(&mut self) -> ENABLE_W<'_, COMPCTRL_SPEC, 1>
Bit 1 - Enable
sourcepub fn single(&mut self) -> SINGLE_W<'_, COMPCTRL_SPEC, 2>
pub fn single(&mut self) -> SINGLE_W<'_, COMPCTRL_SPEC, 2>
Bit 2 - Single-Shot Mode
sourcepub fn intsel(&mut self) -> INTSEL_W<'_, COMPCTRL_SPEC, 3>
pub fn intsel(&mut self) -> INTSEL_W<'_, COMPCTRL_SPEC, 3>
Bits 3:4 - Interrupt Selection
sourcepub fn runstdby(&mut self) -> RUNSTDBY_W<'_, COMPCTRL_SPEC, 6>
pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, COMPCTRL_SPEC, 6>
Bit 6 - Run in Standby
sourcepub fn muxneg(&mut self) -> MUXNEG_W<'_, COMPCTRL_SPEC, 8>
pub fn muxneg(&mut self) -> MUXNEG_W<'_, COMPCTRL_SPEC, 8>
Bits 8:10 - Negative Input Mux Selection
sourcepub fn muxpos(&mut self) -> MUXPOS_W<'_, COMPCTRL_SPEC, 12>
pub fn muxpos(&mut self) -> MUXPOS_W<'_, COMPCTRL_SPEC, 12>
Bits 12:14 - Positive Input Mux Selection
sourcepub fn swap(&mut self) -> SWAP_W<'_, COMPCTRL_SPEC, 15>
pub fn swap(&mut self) -> SWAP_W<'_, COMPCTRL_SPEC, 15>
Bit 15 - Swap Inputs and Invert
sourcepub fn speed(&mut self) -> SPEED_W<'_, COMPCTRL_SPEC, 16>
pub fn speed(&mut self) -> SPEED_W<'_, COMPCTRL_SPEC, 16>
Bits 16:17 - Speed Selection
sourcepub fn hysten(&mut self) -> HYSTEN_W<'_, COMPCTRL_SPEC, 19>
pub fn hysten(&mut self) -> HYSTEN_W<'_, COMPCTRL_SPEC, 19>
Bit 19 - Hysteresis Enable
sourcepub fn hyst(&mut self) -> HYST_W<'_, COMPCTRL_SPEC, 20>
pub fn hyst(&mut self) -> HYST_W<'_, COMPCTRL_SPEC, 20>
Bits 20:21 - Hysteresis Level
sourcepub fn flen(&mut self) -> FLEN_W<'_, COMPCTRL_SPEC, 24>
pub fn flen(&mut self) -> FLEN_W<'_, COMPCTRL_SPEC, 24>
Bits 24:26 - Filter Length
sourcepub fn out(&mut self) -> OUT_W<'_, COMPCTRL_SPEC, 28>
pub fn out(&mut self) -> OUT_W<'_, COMPCTRL_SPEC, 28>
Bits 28:29 - Output