Type Alias gd32f1::gd32f130::adc::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 wdchsel(&mut self) -> WdchselW<'_, Ctl0Spec>

Bits 0:4 - Analog watchdog channel select

source

pub fn eocie(&mut self) -> EocieW<'_, Ctl0Spec>

Bit 5 - Interrupt enable for EOC

source

pub fn wdeie(&mut self) -> WdeieW<'_, Ctl0Spec>

Bit 6 - Interrupt enable for WDE

source

pub fn eoicie(&mut self) -> EoicieW<'_, Ctl0Spec>

Bit 7 - Interrupt enable for EOIC

source

pub fn sm(&mut self) -> SmW<'_, Ctl0Spec>

Bit 8 - Scan mode

source

pub fn wdsc(&mut self) -> WdscW<'_, Ctl0Spec>

Bit 9 - When in scan mode, analog watchdog is effective on a single channel

source

pub fn ica(&mut self) -> IcaW<'_, Ctl0Spec>

Bit 10 - Inserted channel group convert automatically

source

pub fn disrc(&mut self) -> DisrcW<'_, Ctl0Spec>

Bit 11 - Discontinuous mode on regular channels

source

pub fn disic(&mut self) -> DisicW<'_, Ctl0Spec>

Bit 12 - Discontinuous mode on injected channels

source

pub fn disnum(&mut self) -> DisnumW<'_, Ctl0Spec>

Bits 13:15 - Number of conversions in discontinuous mode

source

pub fn iwden(&mut self) -> IwdenW<'_, Ctl0Spec>

Bit 22 - Inserted channel analog watchdog enable

source

pub fn rwden(&mut self) -> RwdenW<'_, Ctl0Spec>

Bit 23 - Regular channel analog watchdog enable