atsamd21j::ac::compctrl

Type Alias R

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

Register COMPCTRL%s reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn enable(&self) -> EnableR

Bit 0 - Enable

Source

pub fn single(&self) -> SingleR

Bit 1 - Single-Shot Mode

Source

pub fn speed(&self) -> SpeedR

Bits 2:3 - Speed Selection

Source

pub fn intsel(&self) -> IntselR

Bits 5:6 - Interrupt Selection

Source

pub fn muxneg(&self) -> MuxnegR

Bits 8:10 - Negative Input Mux Selection

Source

pub fn muxpos(&self) -> MuxposR

Bits 12:13 - Positive Input Mux Selection

Source

pub fn swap(&self) -> SwapR

Bit 15 - Swap Inputs and Invert

Source

pub fn out(&self) -> OutR

Bits 16:17 - Output

Source

pub fn hyst(&self) -> HystR

Bit 19 - Hysteresis Enable

Source

pub fn flen(&self) -> FlenR

Bits 24:26 - Filter Length