Type Alias atsame54n::tc0::count8::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 - Timer Counter Mode

source

pub fn prescsync(&self) -> PRESCSYNC_R

Bits 4:5 - Prescaler and Counter Synchronization

source

pub fn runstdby(&self) -> RUNSTDBY_R

Bit 6 - Run during Standby

source

pub fn ondemand(&self) -> ONDEMAND_R

Bit 7 - Clock On Demand

source

pub fn prescaler(&self) -> PRESCALER_R

Bits 8:10 - Prescaler

source

pub fn alock(&self) -> ALOCK_R

Bit 11 - Auto Lock

source

pub fn dmaos(&self) -> DMAOS_R

Bit 15 - DMA One-Shot Trigger Mode

source

pub fn capten0(&self) -> CAPTEN0_R

Bit 16 - Capture Channel 0 Enable

source

pub fn capten1(&self) -> CAPTEN1_R

Bit 17 - Capture Channel 1 Enable

source

pub fn copen0(&self) -> COPEN0_R

Bit 20 - Capture On Pin 0 Enable

source

pub fn copen1(&self) -> COPEN1_R

Bit 21 - Capture On Pin 1 Enable

source

pub fn captmode0(&self) -> CAPTMODE0_R

Bits 24:25 - Capture Mode Channel 0

source

pub fn captmode1(&self) -> CAPTMODE1_R

Bits 27:28 - Capture mode Channel 1