atsamd21g::ac::compctrl

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 0 - Enable

Source

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

Bit 1 - Single-Shot Mode

Source

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

Bits 2:3 - Speed Selection

Source

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

Bits 5:6 - Interrupt Selection

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:13 - Positive Input Mux Selection

Source

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

Bit 15 - Swap Inputs and Invert

Source

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

Bits 16:17 - Output

Source

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

Bit 19 - Hysteresis Enable

Source

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

Bits 24:26 - Filter Length