#[non_exhaustive]pub struct TwoDConfig {
pub linear: ItemConfig,
pub block_repeat_count: u16,
pub src_addr_offset: i16,
pub dst_addr_offset: i16,
pub block_src_addr_offset: i32,
pub block_dst_addr_offset: i32,
}Expand description
Configuration for 2D (block-repeat with address offsets) DMA transfers.
These parameters control how addresses are stepped after each burst and each block repeat.
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.linear: ItemConfigBase linear configuration (transfer complete mode, etc.).
block_repeat_count: u16Number of block repeats (0 = single block, no repeat).
src_addr_offset: i16Per-burst source address offset (13-bit signed, in bytes).
dst_addr_offset: i16Per-burst destination address offset (13-bit signed, in bytes).
block_src_addr_offset: i32Per-block-repeat source address offset (range: -65535..=65535, in bytes). Applied at the end of each block.
block_dst_addr_offset: i32Per-block-repeat destination address offset (range: -65535..=65535, in bytes). Applied at the end of each block.
Trait Implementations§
Source§impl Clone for TwoDConfig
impl Clone for TwoDConfig
Source§fn clone(&self) -> TwoDConfig
fn clone(&self) -> TwoDConfig
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 TwoDConfig
impl Debug for TwoDConfig
Source§impl Default for TwoDConfig
impl Default for TwoDConfig
Source§impl Format for TwoDConfigwhere
ItemConfig: Format,
impl Format for TwoDConfigwhere
ItemConfig: Format,
impl Copy for TwoDConfig
Auto Trait Implementations§
impl Freeze for TwoDConfig
impl RefUnwindSafe for TwoDConfig
impl Send for TwoDConfig
impl Sync for TwoDConfig
impl Unpin for TwoDConfig
impl UnwindSafe for TwoDConfig
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