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
impl Send for ADC
Auto Trait Implementations§
impl Freeze for ADC
impl RefUnwindSafe for ADC
impl !Sync for ADC
impl Unpin for ADC
impl UnwindSafe for ADC
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more