pub struct DmaObject { /* private fields */ }Expand description
A handle for an object that can be used to perform DMA, and is most useful directly as a way to perform DMA operations on a specific object. For an allocator-like DMA interface, see crate::dma::DmaPool.
Implementations§
Source§impl DmaObject
impl DmaObject
Sourcepub fn slice_region<T: DeviceSync>(
&self,
offset: usize,
len: usize,
access: Access,
options: DmaOptions,
) -> DmaSliceRegion<T>
pub fn slice_region<T: DeviceSync>( &self, offset: usize, len: usize, access: Access, options: DmaOptions, ) -> DmaSliceRegion<T>
Create a DmaSliceRegion from the base of this object, where the region represents memory
of type [T; len].
Trait Implementations§
Auto Trait Implementations§
impl !DeviceSync for DmaObject
impl Freeze for DmaObject
impl RefUnwindSafe for DmaObject
impl Send for DmaObject
impl StoreCopy for DmaObject
impl Sync for DmaObject
impl Unpin for DmaObject
impl UnwindSafe for DmaObject
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