#[repr(C)]pub struct LinearItem {
pub item: Item,
pub llr: ChLlr,
}Expand description
A linked-list item for linear GPDMA transfers.
Also works for 2D-capable GPDMA channels, but does not use 2D capabilities.
Fields§
§item: ItemCommon item fields (TR1, TR2, BR1, SAR, DAR).
llr: ChLlrLinked-list address register.
Trait Implementations§
Source§impl Clone for LinearItem
impl Clone for LinearItem
Source§fn clone(&self) -> LinearItem
fn clone(&self) -> LinearItem
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 LinearItem
impl Debug for LinearItem
Source§impl Default for LinearItem
impl Default for LinearItem
Source§fn default() -> LinearItem
fn default() -> LinearItem
Returns the “default value” for a type. Read more
Source§impl Format for LinearItem
impl Format for LinearItem
Source§impl LinkedListItem for LinearItem
impl LinkedListItem for LinearItem
Source§type Config = ItemConfig
type Config = ItemConfig
Per-item configuration passed at construction time.
Source§unsafe fn new_read<MW: Word, PW: Word>(
request: Request,
peri_addr: *mut PW,
buf: &mut [MW],
config: Self::Config,
) -> Self
unsafe fn new_read<MW: Word, PW: Word>( request: Request, peri_addr: *mut PW, buf: &mut [MW], config: Self::Config, ) -> Self
Create a new read DMA transfer item (peripheral to memory). Read more
Source§unsafe fn new_write<MW: Word, PW: Word>(
request: Request,
buf: &[MW],
peri_addr: *mut PW,
config: Self::Config,
) -> Self
unsafe fn new_write<MW: Word, PW: Word>( request: Request, buf: &[MW], peri_addr: *mut PW, config: Self::Config, ) -> Self
Create a new write DMA transfer item (memory to peripheral). Read more
Source§fn transfer_count(&self) -> usize
fn transfer_count(&self) -> usize
The item’s transfer count in number of destination words.
impl Copy for LinearItem
Auto Trait Implementations§
impl Freeze for LinearItem
impl RefUnwindSafe for LinearItem
impl Send for LinearItem
impl Sync for LinearItem
impl Unpin for LinearItem
impl UnwindSafe for LinearItem
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