Type Alias gd32f1::gd32f190::adc::ctl1::R

source ·
pub type R = R<Ctl1Spec>;
Expand description

Register CTL1 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn adcon(&self) -> AdconR

Bit 0 - ADC ON

source

pub fn ctn(&self) -> CtnR

Bit 1 - Continuous mode

source

pub fn clb(&self) -> ClbR

Bit 2 - ADC calibration

source

pub fn rstclb(&self) -> RstclbR

Bit 3 - Reset calibration

source

pub fn dma(&self) -> DmaR

Bit 8 - DMA request enable

source

pub fn dal(&self) -> DalR

Bit 11 - Data alignment

source

pub fn etsic(&self) -> EtsicR

Bits 12:14 - External trigger select for inserted channel

source

pub fn eteic(&self) -> EteicR

Bit 15 - External trigger enable for inserted channel

source

pub fn etsrc(&self) -> EtsrcR

Bits 17:19 - External trigger select for regular channel

source

pub fn eterc(&self) -> EtercR

Bit 20 - External trigger enable for regular channel

source

pub fn swicst(&self) -> SwicstR

Bit 21 - Start on inserted channel

source

pub fn swrcst(&self) -> SwrcstR

Bit 22 - Start on regular channel

source

pub fn tsvren(&self) -> TsvrenR

Bit 23 - Channel 16 and 17 enable of ADC

source

pub fn vbaten(&self) -> VbatenR

Bit 24 - enable/disable the VBAT channel