pub struct Adc { /* private fields */ }
Expand description
Analog to Digital converter interface
Implementations§
Source§impl Adc
impl Adc
pub fn new(adc: ADC, rcc: &mut Rcc) -> Self
Sourcepub fn set_sample_time(&mut self, t_samp: SampleTime)
pub fn set_sample_time(&mut self, t_samp: SampleTime)
Set the Adc sampling time
Sourcepub fn set_precision(&mut self, precision: Precision)
pub fn set_precision(&mut self, precision: Precision)
Set the Adc precision
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