Skip to main content

MmioBackend

Trait MmioBackend 

Source
pub trait MmioBackend {
    // Required methods
    fn read32(&mut self, offset: u64) -> Result<u32, BackendError>;
    fn write32(&mut self, offset: u64, value: u32) -> Result<(), BackendError>;
    fn barrier(&mut self);
}
Expand description

Volatile 32-bit MMIO access to one resource.

Required Methods§

Source

fn read32(&mut self, offset: u64) -> Result<u32, BackendError>

Performs one volatile 32-bit read at offset bytes from the start of the logical resource.

Source

fn write32(&mut self, offset: u64, value: u32) -> Result<(), BackendError>

Performs one volatile 32-bit write at offset bytes from the start of the logical resource.

Source

fn barrier(&mut self)

Applies a platform MMIO memory barrier.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§