atsamd21g::tcc0::ctrla

Type Alias R

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

Register CTRLA reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn swrst(&self) -> SwrstR

Bit 0 - Software Reset

Source

pub fn enable(&self) -> EnableR

Bit 1 - Enable

Source

pub fn resolution(&self) -> ResolutionR

Bits 5:6 - Enhanced Resolution

Source

pub fn prescaler(&self) -> PrescalerR

Bits 8:10 - Prescaler

Source

pub fn runstdby(&self) -> RunstdbyR

Bit 11 - Run in Standby

Source

pub fn prescsync(&self) -> PrescsyncR

Bits 12:13 - Prescaler and Counter Synchronization Selection

Source

pub fn alock(&self) -> AlockR

Bit 14 - Auto Lock

Source

pub fn cpten0(&self) -> Cpten0R

Bit 24 - Capture Channel 0 Enable

Source

pub fn cpten1(&self) -> Cpten1R

Bit 25 - Capture Channel 1 Enable

Source

pub fn cpten2(&self) -> Cpten2R

Bit 26 - Capture Channel 2 Enable

Source

pub fn cpten3(&self) -> Cpten3R

Bit 27 - Capture Channel 3 Enable