Type Alias atsame54n::tc0::count32::ctrla::W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn swrst(&mut self) -> SWRST_W<'_, CTRLA_SPEC, 0>

Bit 0 - Software Reset

source

pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>

Bit 1 - Enable

source

pub fn mode(&mut self) -> MODE_W<'_, CTRLA_SPEC, 2>

Bits 2:3 - Timer Counter Mode

source

pub fn prescsync(&mut self) -> PRESCSYNC_W<'_, CTRLA_SPEC, 4>

Bits 4:5 - Prescaler and Counter Synchronization

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, CTRLA_SPEC, 6>

Bit 6 - Run during Standby

source

pub fn ondemand(&mut self) -> ONDEMAND_W<'_, CTRLA_SPEC, 7>

Bit 7 - Clock On Demand

source

pub fn prescaler(&mut self) -> PRESCALER_W<'_, CTRLA_SPEC, 8>

Bits 8:10 - Prescaler

source

pub fn alock(&mut self) -> ALOCK_W<'_, CTRLA_SPEC, 11>

Bit 11 - Auto Lock

source

pub fn dmaos(&mut self) -> DMAOS_W<'_, CTRLA_SPEC, 15>

Bit 15 - DMA One-Shot Trigger Mode

source

pub fn capten0(&mut self) -> CAPTEN0_W<'_, CTRLA_SPEC, 16>

Bit 16 - Capture Channel 0 Enable

source

pub fn capten1(&mut self) -> CAPTEN1_W<'_, CTRLA_SPEC, 17>

Bit 17 - Capture Channel 1 Enable

source

pub fn copen0(&mut self) -> COPEN0_W<'_, CTRLA_SPEC, 20>

Bit 20 - Capture On Pin 0 Enable

source

pub fn copen1(&mut self) -> COPEN1_W<'_, CTRLA_SPEC, 21>

Bit 21 - Capture On Pin 1 Enable

source

pub fn captmode0(&mut self) -> CAPTMODE0_W<'_, CTRLA_SPEC, 24>

Bits 24:25 - Capture Mode Channel 0

source

pub fn captmode1(&mut self) -> CAPTMODE1_W<'_, CTRLA_SPEC, 27>

Bits 27:28 - Capture mode Channel 1

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual