atsamd21g::tcc0::ctrla

Type Alias PrescsyncW

Source
pub type PrescsyncW<'a, REG> = FieldWriter<'a, REG, 2, Prescsyncselect>;
Expand description

Field PRESCSYNC writer - Prescaler and Counter Synchronization Selection

Aliased Type§

struct PrescsyncW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> PrescsyncW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

Source

pub fn gclk(self) -> &'a mut W<REG>

Reload or reset counter on next GCLK

Source

pub fn presc(self) -> &'a mut W<REG>

Reload or reset counter on next prescaler clock

Source

pub fn resync(self) -> &'a mut W<REG>

Reload or reset counter on next GCLK and reset prescaler counter