pub struct CortexMDmaFence { /* private fields */ }Implementations§
Source§impl CortexMDmaFence
An implementation of DmaFence for ARM Cortex-M systems.
impl CortexMDmaFence
An implementation of DmaFence for ARM Cortex-M systems.
The provided release and acquire methods use opaque assembly
blocks and the THUMB DMB instructions to make prior writes to
shared buffers visible to DMA devices, and DMA writes visible
subsequent memory reads, as specified in the ARM Cortex-M
Programming Guide to Memory Barrier Instructions 1.
Sourcepub unsafe fn new() -> Self
pub unsafe fn new() -> Self
Construct a new CortexMDmaFence.
§Safety
Users of this function guarantee that this fence is an appropriate
implementation of DmaFence for the platform on which this code is
running. In practice, this means that users must assert to be running on
an ARM Cortex-M (ARM-v6m / ARM-v7m) CPU.
Trait Implementations§
Source§impl Clone for CortexMDmaFence
impl Clone for CortexMDmaFence
Source§fn clone(&self) -> CortexMDmaFence
fn clone(&self) -> CortexMDmaFence
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 CortexMDmaFence
impl Debug for CortexMDmaFence
Source§impl DmaFence for CortexMDmaFence
Available on not (ARM and target_os=none).
impl DmaFence for CortexMDmaFence
Available on not (ARM and
target_os=none).impl Copy for CortexMDmaFence
Auto Trait Implementations§
impl Freeze for CortexMDmaFence
impl RefUnwindSafe for CortexMDmaFence
impl Send for CortexMDmaFence
impl Sync for CortexMDmaFence
impl Unpin for CortexMDmaFence
impl UnwindSafe for CortexMDmaFence
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