Type Alias atsame51g::pdec::ctrla::R

source ·
pub type R = R<CTRLA_SPEC>;
Expand description

Register CTRLA reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn swrst(&self) -> SWRST_R

Bit 0 - Software Reset

source

pub fn enable(&self) -> ENABLE_R

Bit 1 - Enable

source

pub fn mode(&self) -> MODE_R

Bits 2:3 - Operation Mode

source

pub fn runstdby(&self) -> RUNSTDBY_R

Bit 6 - Run in Standby

source

pub fn conf(&self) -> CONF_R

Bits 8:10 - PDEC Configuration

source

pub fn alock(&self) -> ALOCK_R

Bit 11 - Auto Lock

source

pub fn swap(&self) -> SWAP_R

Bit 14 - PDEC Phase A and B Swap

source

pub fn peren(&self) -> PEREN_R

Bit 15 - Period Enable

source

pub fn pinen0(&self) -> PINEN0_R

Bit 16 - PDEC Input From Pin 0 Enable

source

pub fn pinen1(&self) -> PINEN1_R

Bit 17 - PDEC Input From Pin 1 Enable

source

pub fn pinen2(&self) -> PINEN2_R

Bit 18 - PDEC Input From Pin 2 Enable

source

pub fn pinven0(&self) -> PINVEN0_R

Bit 20 - IO Pin 0 Invert Enable

source

pub fn pinven1(&self) -> PINVEN1_R

Bit 21 - IO Pin 1 Invert Enable

source

pub fn pinven2(&self) -> PINVEN2_R

Bit 22 - IO Pin 2 Invert Enable

source

pub fn angular(&self) -> ANGULAR_R

Bits 24:26 - Angular Counter Length

source

pub fn maxcmp(&self) -> MAXCMP_R

Bits 28:31 - Maximum Consecutive Missing Pulses