Struct stm32l0xx_hal::pac::ADC
source · [−]pub struct ADC { /* private fields */ }
Expand description
Analog-to-digital converter
Implementations
sourceimpl ADC
impl ADC
sourcepub const PTR: *const RegisterBlock = {0x40012400 as *const stm32l0::stm32l0x1::adc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40012400 as *const stm32l0::stm32l0x1::adc::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl Enable for ADC
impl Enable for ADC
sourcefn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
sourcefn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
sourceunsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
sourceunsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
sourceimpl SMEnable for ADC
impl SMEnable for ADC
sourcefn enable_in_sleep_mode(rcc: &mut Rcc)
fn enable_in_sleep_mode(rcc: &mut Rcc)
Enables peripheral
sourcefn disable_in_sleep_mode(rcc: &mut Rcc)
fn disable_in_sleep_mode(rcc: &mut Rcc)
Disables peripheral
sourcefn is_enabled_in_sleep_mode() -> bool
fn is_enabled_in_sleep_mode() -> bool
Check if peripheral enabled
sourcefn is_disabled_in_sleep_mode() -> bool
fn is_disabled_in_sleep_mode() -> bool
Check if peripheral disabled
sourceunsafe fn enable_in_sleep_mode_unchecked()
unsafe fn enable_in_sleep_mode_unchecked()
Safety Read more
sourceunsafe fn disable_in_sleep_mode_unchecked()
unsafe fn disable_in_sleep_mode_unchecked()
Safety Read more
impl Send for ADC
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more