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§

source

fn read_halfword(addr: u32, state: &T) -> u16

Returns a halfword from the memory address.

source

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.

Implementors§