pub struct Adc<F> { /* private fields */ }Implementations§
Source§impl Adc<Unsigned32>
impl Adc<Unsigned32>
Source§impl Adc<Unsigned16>
impl Adc<Unsigned16>
Source§impl<F> Adc<F>
impl<F> Adc<F>
Sourcepub fn configure(&mut self, config: &AdcConfiguration)
pub fn configure(&mut self, config: &AdcConfiguration)
configure and activate the ADC
Sourcepub fn select_pos_input(&mut self, input: InputScan)
pub fn select_pos_input(&mut self, input: InputScan)
Select positive input for sample A
Sourcepub fn select_neg_input(&mut self, input: NegativeInput)
pub fn select_neg_input(&mut self, input: NegativeInput)
Select negative input for sample A
Sourcepub fn select_pos_alt_input(&mut self, input: u8)
pub fn select_pos_alt_input(&mut self, input: u8)
Select positive input for sample B (alternate sample)
Sourcepub fn select_neg_alt_input(&mut self, input: NegativeInput)
pub fn select_neg_alt_input(&mut self, input: NegativeInput)
Select negative input for sample B (alternate sample)
Sourcepub fn start_sampling(&mut self)
pub fn start_sampling(&mut self)
Manually start a sampling period. Use only when auto_sample is not active.
Sourcepub fn start_conversion(&mut self)
pub fn start_conversion(&mut self)
Manually start a conversion period. Use only when the ConversionTrigger is Manual.
Auto Trait Implementations§
impl<F> !Sync for Adc<F>
impl<F> Freeze for Adc<F>
impl<F> RefUnwindSafe for Adc<F>where
F: RefUnwindSafe,
impl<F> Send for Adc<F>where
F: Send,
impl<F> Unpin for Adc<F>where
F: Unpin,
impl<F> UnsafeUnpin for Adc<F>
impl<F> UnwindSafe for Adc<F>where
F: UnwindSafe,
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