#[non_exhaustive]pub struct TransferOptions {
pub priority: Priority,
pub half_transfer_ir: bool,
pub complete_transfer_ir: bool,
pub packing: Packing,
pub request_mode: RequestMode,
pub transfer_complete_mode: TransferCompleteMode,
pub trigger: Option<TriggerConfig>,
}Expand description
GPDMA 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: PriorityRequest priority level.
half_transfer_ir: boolEnable half transfer interrupt.
complete_transfer_ir: boolEnable transfer complete interrupt.
packing: PackingDMA packing configuration
request_mode: RequestModeSelect whether peripheral handshaking is done at burst or block level.
transfer_complete_mode: TransferCompleteModeTransfer complete event mode. Default EachBlock.
For linked-list transfers, set this on each LinearItem via
LinearItem::set_transfer_complete_mode
since the channel TR2 is overwritten by the first LLI when UT2 is set.
trigger: Option<TriggerConfig>Optional trigger-gated transfer configuration.
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
Source§fn clone(&self) -> TransferOptions
fn clone(&self) -> TransferOptions
Returns a duplicate 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 TransferOptionswhere
Priority: Format,
Packing: Format,
RequestMode: Format,
TransferCompleteMode: Format,
Option<TriggerConfig>: Format,
impl Format for TransferOptionswhere
Priority: Format,
Packing: Format,
RequestMode: Format,
TransferCompleteMode: Format,
Option<TriggerConfig>: Format,
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