Type Alias gd32f1::gd32f130::timer5::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 arse(&mut self) -> ArseW<'_, Ctl0Spec>

Bit 7 - Auto-reload shadow enable