Trait eikon3ds_core::arch::memory_access::MemoryAccessHalfword
source · pub trait MemoryAccessHalfword<T> {
// Required methods
fn read_halfword(addr: u32, state: &T) -> u16;
fn write_halfword(addr: u32, data: u16, state: &mut T);
}
Expand description
A component that can either read or write a halfword from a memory address.
Required Methods§
sourcefn read_halfword(addr: u32, state: &T) -> u16
fn read_halfword(addr: u32, state: &T) -> u16
Returns a halfword from the memory address.
sourcefn write_halfword(addr: u32, data: u16, state: &mut T)
fn write_halfword(addr: u32, data: u16, state: &mut T)
Writes a halfword to the memory address.
Object Safety§
This trait is not object safe.