#[non_exhaustive]pub struct TransferOptions {
pub priority: Priority,
pub circular: bool,
pub half_transfer_ir: bool,
pub complete_transfer_ir: bool,
pub peripheral_increment: bool,
pub memory_to_memory: bool,
}Expand description
DMA transfer options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.priority: PriorityRequest priority level
circular: boolEnable circular DMA
Note:
If you enable circular mode manually, you may want to build and .await the Transfer in a separate task.
Since DMA in circular mode need manually stop, .await in current task would block the task forever.
half_transfer_ir: boolEnable half transfer interrupt
complete_transfer_ir: boolEnable transfer complete interrupt
peripheral_increment: boolIncrement the peripheral address after each transfer.
Off by default: a peripheral’s data register sits at a fixed address.
Turn it on together with memory_to_memory for a memory-to-memory copy,
where both ends are real addresses.
memory_to_memory: boolMemory-to-memory mode.
The controller then reads from the peripheral address and writes to the memory address on its own, without waiting for a peripheral request. Off by default, which is what every peripheral driver needs.
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
Source§fn clone(&self) -> TransferOptions
fn clone(&self) -> TransferOptions
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransferOptions
Source§impl Debug for TransferOptions
impl Debug for TransferOptions
Source§impl Default for TransferOptions
impl Default for TransferOptions
impl Eq for TransferOptions
Source§impl PartialEq for TransferOptions
impl PartialEq for TransferOptions
impl StructuralPartialEq for TransferOptions
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnsafeUnpin for TransferOptions
impl UnwindSafe for TransferOptions
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)