atsamd51g::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 1 - Enable

Source

pub fn single(&self) -> SingleR

Bit 2 - Single-Shot Mode

Source

pub fn intsel(&self) -> IntselR

Bits 3:4 - Interrupt Selection

Source

pub fn runstdby(&self) -> RunstdbyR

Bit 6 - Run in Standby

Source

pub fn muxneg(&self) -> MuxnegR

Bits 8:10 - Negative Input Mux Selection

Source

pub fn muxpos(&self) -> MuxposR

Bits 12:14 - Positive Input Mux Selection

Source

pub fn swap(&self) -> SwapR

Bit 15 - Swap Inputs and Invert

Source

pub fn speed(&self) -> SpeedR

Bits 16:17 - Speed Selection

Source

pub fn hysten(&self) -> HystenR

Bit 19 - Hysteresis Enable

Source

pub fn hyst(&self) -> HystR

Bits 20:21 - Hysteresis Level

Source

pub fn flen(&self) -> FlenR

Bits 24:26 - Filter Length

Source

pub fn out(&self) -> OutR

Bits 28:29 - Output