Type Alias W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn swrst(&mut self) -> SwrstW<'_, CtrlaSpec>

Bit 0 - Software Reset

Source

pub fn enable(&mut self) -> EnableW<'_, CtrlaSpec>

Bit 1 - Enable

Source

pub fn mode(&mut self) -> ModeW<'_, CtrlaSpec>

Bits 2:3 - Operation Mode

Source

pub fn runstdby(&mut self) -> RunstdbyW<'_, CtrlaSpec>

Bit 6 - Run in Standby

Source

pub fn conf(&mut self) -> ConfW<'_, CtrlaSpec>

Bits 8:10 - PDEC Configuration

Source

pub fn alock(&mut self) -> AlockW<'_, CtrlaSpec>

Bit 11 - Auto Lock

Source

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

Bit 14 - PDEC Phase A and B Swap

Source

pub fn peren(&mut self) -> PerenW<'_, CtrlaSpec>

Bit 15 - Period Enable

Source

pub fn pinen0(&mut self) -> Pinen0W<'_, CtrlaSpec>

Bit 16 - PDEC Input From Pin 0 Enable

Source

pub fn pinen1(&mut self) -> Pinen1W<'_, CtrlaSpec>

Bit 17 - PDEC Input From Pin 1 Enable

Source

pub fn pinen2(&mut self) -> Pinen2W<'_, CtrlaSpec>

Bit 18 - PDEC Input From Pin 2 Enable

Source

pub fn pinven0(&mut self) -> Pinven0W<'_, CtrlaSpec>

Bit 20 - IO Pin 0 Invert Enable

Source

pub fn pinven1(&mut self) -> Pinven1W<'_, CtrlaSpec>

Bit 21 - IO Pin 1 Invert Enable

Source

pub fn pinven2(&mut self) -> Pinven2W<'_, CtrlaSpec>

Bit 22 - IO Pin 2 Invert Enable

Source

pub fn angular(&mut self) -> AngularW<'_, CtrlaSpec>

Bits 24:26 - Angular Counter Length

Source

pub fn maxcmp(&mut self) -> MaxcmpW<'_, CtrlaSpec>

Bits 28:31 - Maximum Consecutive Missing Pulses