atsamd21g::tcc0::ctrla

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 resolution(&mut self) -> ResolutionW<'_, CtrlaSpec>

Bits 5:6 - Enhanced Resolution

Source

pub fn prescaler(&mut self) -> PrescalerW<'_, CtrlaSpec>

Bits 8:10 - Prescaler

Source

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

Bit 11 - Run in Standby

Source

pub fn prescsync(&mut self) -> PrescsyncW<'_, CtrlaSpec>

Bits 12:13 - Prescaler and Counter Synchronization Selection

Source

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

Bit 14 - Auto Lock

Source

pub fn cpten0(&mut self) -> Cpten0W<'_, CtrlaSpec>

Bit 24 - Capture Channel 0 Enable

Source

pub fn cpten1(&mut self) -> Cpten1W<'_, CtrlaSpec>

Bit 25 - Capture Channel 1 Enable

Source

pub fn cpten2(&mut self) -> Cpten2W<'_, CtrlaSpec>

Bit 26 - Capture Channel 2 Enable

Source

pub fn cpten3(&mut self) -> Cpten3W<'_, CtrlaSpec>

Bit 27 - Capture Channel 3 Enable