pub struct InjectedAdc<'d, R: InjectedAdcRegs, M: Mode> { /* private fields */ }Expand description
Injected ADC sequence with owned channels.
Implementations§
Source§impl<'d, R: InjectedAdcRegs, M: Mode> InjectedAdc<'d, R, M>
impl<'d, R: InjectedAdcRegs, M: Mode> InjectedAdc<'d, R, M>
Sourcepub fn stop_injected_conversions(&mut self)
pub fn stop_injected_conversions(&mut self)
Stops injected convention.
Any ongoing injected conversion is aborted with partial result discarded.
Sourcepub fn start_injected_conversions(&mut self)
pub fn start_injected_conversions(&mut self)
Starts injected convention:
- Immediately if in software trigger mode (JEXTEN = 0)
- At the next active edge of the selected injected hardware trigger (JEXTEN != 0)
Sourcepub fn read_latest(&mut self, buf: &mut [u16])
pub fn read_latest(&mut self, buf: &mut [u16])
Reads latest result directly from the injected convention registers.
This function is intended to be used in a custom interrupt handler.
For other use cases prefer read function.
Source§impl<'d, R: InjectedAdcRegs> InjectedAdc<'d, R, Async>
impl<'d, R: InjectedAdcRegs> InjectedAdc<'d, R, Async>
Trait Implementations§
Source§impl<'d, R: InjectedAdcRegs, M: Mode> Drop for InjectedAdc<'d, R, M>
impl<'d, R: InjectedAdcRegs, M: Mode> Drop for InjectedAdc<'d, R, M>
Auto Trait Implementations§
impl<'d, R, M> !RefUnwindSafe for InjectedAdc<'d, R, M>
impl<'d, R, M> !UnwindSafe for InjectedAdc<'d, R, M>
impl<'d, R, M> Freeze for InjectedAdc<'d, R, M>
impl<'d, R, M> Send for InjectedAdc<'d, R, M>
impl<'d, R, M> Sync for InjectedAdc<'d, R, M>
impl<'d, R, M> Unpin for InjectedAdc<'d, R, M>
impl<'d, R, M> UnsafeUnpin for InjectedAdc<'d, R, M>where
R: UnsafeUnpin,
M: UnsafeUnpin,
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