pub struct Adc { /* private fields */ }
Implementations§
Source§impl Adc
impl Adc
Sourcepub fn new(ch: AdcChannel, flags: Option<u32>) -> Self
pub fn new(ch: AdcChannel, flags: Option<u32>) -> Self
Sourcepub fn single_convert(&self) -> AdcDataType
pub fn single_convert(&self) -> AdcDataType
Sourcepub fn multiple_convert(&self, buf: &mut [AdcDataType]) -> bool
pub fn multiple_convert(&self, buf: &mut [AdcDataType]) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adc
impl RefUnwindSafe for Adc
impl Send 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