Struct stm32g0xx_hal::stm32::ADC
source · pub struct ADC { /* private fields */ }
Expand description
Analog to Digital Converter instance 1
Implementations§
Methods from Deref<Target = RegisterBlock>§
sourcepub fn chselr_1(&self) -> &Reg<CHSELR_1_SPEC>
pub fn chselr_1(&self) -> &Reg<CHSELR_1_SPEC>
0x28 - channel selection register CHSELRMOD = 1 in ADC_CFGR1
sourcepub fn chselr(&self) -> &Reg<CHSELR_SPEC>
pub fn chselr(&self) -> &Reg<CHSELR_SPEC>
0x28 - channel selection register
Trait Implementations§
source§impl Enable for ADC
impl Enable for ADC
source§fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
source§fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
source§unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
source§impl SMEnable for ADC
impl SMEnable for ADC
source§fn sleep_mode_enable(rcc: &mut Rcc)
fn sleep_mode_enable(rcc: &mut Rcc)
Enables peripheral
source§fn sleep_mode_disable(rcc: &mut Rcc)
fn sleep_mode_disable(rcc: &mut Rcc)
Disables peripheral
source§fn is_sleep_mode_enabled() -> bool
fn is_sleep_mode_enabled() -> bool
Check if peripheral enabled
source§fn is_sleep_mode_disabled() -> bool
fn is_sleep_mode_disabled() -> bool
Check if peripheral disabled
source§unsafe fn sleep_mode_enable_unchecked()
unsafe fn sleep_mode_enable_unchecked()
Safety Read more
source§unsafe fn sleep_mode_disable_unchecked()
unsafe fn sleep_mode_disable_unchecked()
Safety Read more