atsamd51g::pdec::ctrla

Type Alias R

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

Register CTRLA reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn swrst(&self) -> SwrstR

Bit 0 - Software Reset

Source

pub fn enable(&self) -> EnableR

Bit 1 - Enable

Source

pub fn mode(&self) -> ModeR

Bits 2:3 - Operation Mode

Source

pub fn runstdby(&self) -> RunstdbyR

Bit 6 - Run in Standby

Source

pub fn conf(&self) -> ConfR

Bits 8:10 - PDEC Configuration

Source

pub fn alock(&self) -> AlockR

Bit 11 - Auto Lock

Source

pub fn swap(&self) -> SwapR

Bit 14 - PDEC Phase A and B Swap

Source

pub fn peren(&self) -> PerenR

Bit 15 - Period Enable

Source

pub fn pinen0(&self) -> Pinen0R

Bit 16 - PDEC Input From Pin 0 Enable

Source

pub fn pinen1(&self) -> Pinen1R

Bit 17 - PDEC Input From Pin 1 Enable

Source

pub fn pinen2(&self) -> Pinen2R

Bit 18 - PDEC Input From Pin 2 Enable

Source

pub fn pinven0(&self) -> Pinven0R

Bit 20 - IO Pin 0 Invert Enable

Source

pub fn pinven1(&self) -> Pinven1R

Bit 21 - IO Pin 1 Invert Enable

Source

pub fn pinven2(&self) -> Pinven2R

Bit 22 - IO Pin 2 Invert Enable

Source

pub fn angular(&self) -> AngularR

Bits 24:26 - Angular Counter Length

Source

pub fn maxcmp(&self) -> MaxcmpR

Bits 28:31 - Maximum Consecutive Missing Pulses