Type Alias W

Source
pub type W = W<CompctrlSpec>;
Expand description

Register COMPCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn enable(&mut self) -> EnableW<'_, CompctrlSpec>

Bit 1 - Enable

Source

pub fn single(&mut self) -> SingleW<'_, CompctrlSpec>

Bit 2 - Single-Shot Mode

Source

pub fn intsel(&mut self) -> IntselW<'_, CompctrlSpec>

Bits 3:4 - Interrupt Selection

Source

pub fn runstdby(&mut self) -> RunstdbyW<'_, CompctrlSpec>

Bit 6 - Run in Standby

Source

pub fn muxneg(&mut self) -> MuxnegW<'_, CompctrlSpec>

Bits 8:10 - Negative Input Mux Selection

Source

pub fn muxpos(&mut self) -> MuxposW<'_, CompctrlSpec>

Bits 12:14 - Positive Input Mux Selection

Source

pub fn swap(&mut self) -> SwapW<'_, CompctrlSpec>

Bit 15 - Swap Inputs and Invert

Source

pub fn speed(&mut self) -> SpeedW<'_, CompctrlSpec>

Bits 16:17 - Speed Selection

Source

pub fn hysten(&mut self) -> HystenW<'_, CompctrlSpec>

Bit 19 - Hysteresis Enable

Source

pub fn hyst(&mut self) -> HystW<'_, CompctrlSpec>

Bits 20:21 - Hysteresis Level

Source

pub fn flen(&mut self) -> FlenW<'_, CompctrlSpec>

Bits 24:26 - Filter Length

Source

pub fn out(&mut self) -> OutW<'_, CompctrlSpec>

Bits 28:29 - Output