pub type W = W<CTRLA_SPEC>;
Expand description
Register CTRLA
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>
pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>
Bit 0 - Software Reset
sourcepub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>
pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>
Bit 1 - Enable
sourcepub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>
pub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>
Bits 2:3 - Timer Counter Mode
sourcepub fn prescsync(&mut self) -> PRESCSYNC_W<'_, CTRLA_SPEC, 4>
pub fn prescsync(&mut self) -> PRESCSYNC_W<'_, CTRLA_SPEC, 4>
Bits 4:5 - Prescaler and Counter Synchronization
sourcepub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CTRLA_SPEC, 6>
pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CTRLA_SPEC, 6>
Bit 6 - Run during Standby
sourcepub fn ondemand(&mut self) -> ONDEMAND_W<'_, CTRLA_SPEC, 7>
pub fn ondemand(&mut self) -> ONDEMAND_W<'_, CTRLA_SPEC, 7>
Bit 7 - Clock On Demand
sourcepub fn prescaler(&mut self) -> PRESCALER_W<'_, CTRLA_SPEC, 8>
pub fn prescaler(&mut self) -> PRESCALER_W<'_, CTRLA_SPEC, 8>
Bits 8:10 - Prescaler
sourcepub fn alock(&mut self) -> ALOCK_W<'_, CTRLA_SPEC, 11>
pub fn alock(&mut self) -> ALOCK_W<'_, CTRLA_SPEC, 11>
Bit 11 - Auto Lock
sourcepub fn dmaos(&mut self) -> DMAOS_W<'_, CTRLA_SPEC, 15>
pub fn dmaos(&mut self) -> DMAOS_W<'_, CTRLA_SPEC, 15>
Bit 15 - DMA One-Shot Trigger Mode
sourcepub fn capten0(&mut self) -> CAPTEN0_W<'_, CTRLA_SPEC, 16>
pub fn capten0(&mut self) -> CAPTEN0_W<'_, CTRLA_SPEC, 16>
Bit 16 - Capture Channel 0 Enable
sourcepub fn capten1(&mut self) -> CAPTEN1_W<'_, CTRLA_SPEC, 17>
pub fn capten1(&mut self) -> CAPTEN1_W<'_, CTRLA_SPEC, 17>
Bit 17 - Capture Channel 1 Enable
sourcepub fn copen0(&mut self) -> COPEN0_W<'_, CTRLA_SPEC, 20>
pub fn copen0(&mut self) -> COPEN0_W<'_, CTRLA_SPEC, 20>
Bit 20 - Capture On Pin 0 Enable
sourcepub fn copen1(&mut self) -> COPEN1_W<'_, CTRLA_SPEC, 21>
pub fn copen1(&mut self) -> COPEN1_W<'_, CTRLA_SPEC, 21>
Bit 21 - Capture On Pin 1 Enable
sourcepub fn captmode0(&mut self) -> CAPTMODE0_W<'_, CTRLA_SPEC, 24>
pub fn captmode0(&mut self) -> CAPTMODE0_W<'_, CTRLA_SPEC, 24>
Bits 24:25 - Capture Mode Channel 0
sourcepub fn captmode1(&mut self) -> CAPTMODE1_W<'_, CTRLA_SPEC, 27>
pub fn captmode1(&mut self) -> CAPTMODE1_W<'_, CTRLA_SPEC, 27>
Bits 27:28 - Capture mode Channel 1