Trait cameleon_impl::memory::MemoryRead
source · [−]pub trait MemoryRead {
fn read_raw(&self, range: Range<usize>) -> MemoryResult<&[u8]>;
fn access_right<T: Register>(&self) -> AccessRight;
fn read<T: Register>(&self) -> MemoryResult<T::Ty>;
}Required methods
fn access_right<T: Register>(&self) -> AccessRight
fn read<T: Register>(&self) -> MemoryResult<T::Ty>
fn read<T: Register>(&self) -> MemoryResult<T::Ty>
Read data from the register.
Since the host side know nothing about Register, this method can be called only from the machine side so access rights are temporarily set to RW.