pub type W = W<CompctrlSpec>;
Expand description
Register COMPCTRL%s
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
Source§impl W
impl W
Sourcepub fn enable(&mut self) -> EnableW<'_, CompctrlSpec>
pub fn enable(&mut self) -> EnableW<'_, CompctrlSpec>
Bit 0 - Enable
Sourcepub fn single(&mut self) -> SingleW<'_, CompctrlSpec>
pub fn single(&mut self) -> SingleW<'_, CompctrlSpec>
Bit 1 - Single-Shot Mode
Sourcepub fn speed(&mut self) -> SpeedW<'_, CompctrlSpec>
pub fn speed(&mut self) -> SpeedW<'_, CompctrlSpec>
Bits 2:3 - Speed Selection
Sourcepub fn intsel(&mut self) -> IntselW<'_, CompctrlSpec>
pub fn intsel(&mut self) -> IntselW<'_, CompctrlSpec>
Bits 5:6 - Interrupt Selection
Sourcepub fn muxneg(&mut self) -> MuxnegW<'_, CompctrlSpec>
pub fn muxneg(&mut self) -> MuxnegW<'_, CompctrlSpec>
Bits 8:10 - Negative Input Mux Selection
Sourcepub fn muxpos(&mut self) -> MuxposW<'_, CompctrlSpec>
pub fn muxpos(&mut self) -> MuxposW<'_, CompctrlSpec>
Bits 12:13 - Positive Input Mux Selection
Sourcepub fn swap(&mut self) -> SwapW<'_, CompctrlSpec>
pub fn swap(&mut self) -> SwapW<'_, CompctrlSpec>
Bit 15 - Swap Inputs and Invert
Sourcepub fn out(&mut self) -> OutW<'_, CompctrlSpec>
pub fn out(&mut self) -> OutW<'_, CompctrlSpec>
Bits 16:17 - Output
Sourcepub fn hyst(&mut self) -> HystW<'_, CompctrlSpec>
pub fn hyst(&mut self) -> HystW<'_, CompctrlSpec>
Bit 19 - Hysteresis Enable
Sourcepub fn flen(&mut self) -> FlenW<'_, CompctrlSpec>
pub fn flen(&mut self) -> FlenW<'_, CompctrlSpec>
Bits 24:26 - Filter Length