Type Alias gd32f1::gd32f190::tsi::ctl::W

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

Register CTL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tsien(&mut self) -> TsienW<'_, CtlSpec>

Bit 0 - TSI enable

source

pub fn tsis(&mut self) -> TsisW<'_, CtlSpec>

Bit 1 - TSI start

source

pub fn trgmod(&mut self) -> TrgmodW<'_, CtlSpec>

Bit 2 - Trigger mode selection

source

pub fn egsel(&mut self) -> EgselW<'_, CtlSpec>

Bit 3 - Edge selection

source

pub fn pinmod(&mut self) -> PinmodW<'_, CtlSpec>

Bit 4 - Pin mode

source

pub fn mcn(&mut self) -> McnW<'_, CtlSpec>

Bits 5:7 - Max cycle number of a sequence

source

pub fn ctcdiv(&mut self) -> CtcdivW<'_, CtlSpec>

Bits 12:14 - CTCLK clock division factor

source

pub fn ecdiv(&mut self) -> EcdivW<'_, CtlSpec>

Bit 15 - ECCLK clock division factor

source

pub fn ecen(&mut self) -> EcenW<'_, CtlSpec>

Bit 16 - Extend Charge State Enable

source

pub fn ecdt(&mut self) -> EcdtW<'_, CtlSpec>

Bits 17:23 - Extend Charge State Maximum Duration Time

source

pub fn ctdt(&mut self) -> CtdtW<'_, CtlSpec>

Bits 24:27 - Charge Transfer State Duration Time

source

pub fn cdt(&mut self) -> CdtW<'_, CtlSpec>

Bits 28:31 - Charge State Duration Time