#[non_exhaustive]pub struct TransferOptions {
pub priority: Priority,
pub circular: bool,
pub half_transfer_ir: bool,
pub complete_transfer_ir: bool,
}
Expand description
DMA transfer options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.priority: Priority
Request priority level
circular: bool
Enable 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: bool
Enable half transfer interrupt
complete_transfer_ir: bool
Enable transfer complete interrupt
Trait Implementations§
source§impl Clone for TransferOptions
impl Clone for TransferOptions
source§fn clone(&self) -> TransferOptions
fn clone(&self) -> TransferOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransferOptions
impl Debug for TransferOptions
source§impl Default for TransferOptions
impl Default for TransferOptions
source§impl Format for TransferOptions
impl Format for TransferOptions
source§impl PartialEq for TransferOptions
impl PartialEq for TransferOptions
impl Copy for TransferOptions
impl Eq 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 UnwindSafe for TransferOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)