Type Alias gd32f1::gd32f190::adc::ctl1::AdconW

source ·
pub type AdconW<'a, REG> = BitWriter<'a, REG, Adcon>;
Expand description

Field ADCON writer - ADC ON

Aliased Type§

struct AdconW<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> AdconW<'a, REG>
where REG: Writable + RegisterSpec,

source

pub fn disabled(self) -> &'a mut W<REG>

Disable ADC conversion/calibration and go to power down mode

source

pub fn enabled(self) -> &'a mut W<REG>

Enable ADC and to start conversion