Struct atsamd_hal::adc::InterruptAdc  
source · [−]pub struct InterruptAdc<ADC, C>where
    C: ConversionMode<ADC>,{ /* private fields */ }Expand description
An ADC where results are accessible via interrupt servicing.
Implementations
sourceimpl<C> InterruptAdc<ADC0, C>where
    C: ConversionMode<ADC0>,
 
impl<C> InterruptAdc<ADC0, C>where
    C: ConversionMode<ADC0>,
pub fn service_interrupt_ready(&mut self) -> Option<u16>
sourcepub fn start_conversion<PIN: Channel<ADC0, ID = u8>>(&mut self, pin: &mut PIN)
 
pub fn start_conversion<PIN: Channel<ADC0, ID = u8>>(&mut self, pin: &mut PIN)
Starts a conversion sampling the specified pin.
pub fn stop_conversion(&mut self)
sourceimpl<C> InterruptAdc<ADC1, C>where
    C: ConversionMode<ADC1>,
 
impl<C> InterruptAdc<ADC1, C>where
    C: ConversionMode<ADC1>,
pub fn service_interrupt_ready(&mut self) -> Option<u16>
sourcepub fn start_conversion<PIN: Channel<ADC1, ID = u8>>(&mut self, pin: &mut PIN)
 
pub fn start_conversion<PIN: Channel<ADC1, ID = u8>>(&mut self, pin: &mut PIN)
Starts a conversion sampling the specified pin.
pub fn stop_conversion(&mut self)
Trait Implementations
sourceimpl<C> From<Adc<ADC0>> for InterruptAdc<ADC0, C>where
    C: ConversionMode<ADC0>,
 
impl<C> From<Adc<ADC0>> for InterruptAdc<ADC0, C>where
    C: ConversionMode<ADC0>,
Auto Trait Implementations
impl<ADC, C> RefUnwindSafe for InterruptAdc<ADC, C>where
    ADC: RefUnwindSafe,
    C: RefUnwindSafe,
impl<ADC, C> Send for InterruptAdc<ADC, C>where
    ADC: Send,
    C: Send,
impl<ADC, C> Sync for InterruptAdc<ADC, C>where
    ADC: Sync,
    C: Sync,
impl<ADC, C> Unpin for InterruptAdc<ADC, C>where
    ADC: Unpin,
    C: Unpin,
impl<ADC, C> UnwindSafe for InterruptAdc<ADC, C>where
    ADC: UnwindSafe,
    C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    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