pub enum DmaMode {
Disabled,
OneShot,
Circular,
}Expand description
DMA mode
§Note
The DMA transfer requests are blocked until the software clears the Event::Overrun event.
More details RM0316 15.3.26
§Related functions
Variants§
Disabled
DMA is disabled.
OneShot
In this mode, the ADC generates a DMA transfer request each time a new conversion data is available and stops generating DMA requests once the DMA has reached the last DMA transfer (when DMA end of transmission interrupt occurs) even if a conversion has been started again.
Circular
In this mode, the ADC generates a DMA transfer request each time a new conversion data is available in the data register, even if the DMA has reached the last DMA transfer. This allows configuring the DMA in circular mode to handle a continuous analog input data stream.
Trait Implementations§
impl Copy for DmaMode
impl Eq for DmaMode
impl StructuralPartialEq for DmaMode
Auto Trait Implementations§
impl Freeze for DmaMode
impl RefUnwindSafe for DmaMode
impl Send for DmaMode
impl Sync for DmaMode
impl Unpin for DmaMode
impl UnwindSafe for DmaMode
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