Type Alias gd32e1::gd32e103::timer0::ctl0::W

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

Register CTL0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn cen(&mut self) -> CenW<'_, Ctl0Spec>

Bit 0 - Counter enable

source

pub fn updis(&mut self) -> UpdisW<'_, Ctl0Spec>

Bit 1 - Update disable

source

pub fn ups(&mut self) -> UpsW<'_, Ctl0Spec>

Bit 2 - Update source

source

pub fn spm(&mut self) -> SpmW<'_, Ctl0Spec>

Bit 3 - Single pulse mode

source

pub fn dir(&mut self) -> DirW<'_, Ctl0Spec>

Bit 4 - Direction

source

pub fn cam(&mut self) -> CamW<'_, Ctl0Spec>

Bits 5:6 - Counter aligns mode selection

source

pub fn arse(&mut self) -> ArseW<'_, Ctl0Spec>

Bit 7 - Auto-reload shadow enable

source

pub fn ckdiv(&mut self) -> CkdivW<'_, Ctl0Spec>

Bits 8:9 - Clock division