[−][src]Trait probe_rs::MemoryInterface
Required methods
fn read32(&mut self, address: u32) -> Result<u32, Error>
Read a 32bit word of at addr
.
The address where the read should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn read8(&mut self, address: u32) -> Result<u8, Error>
Read an 8bit word of at addr
.
The address where the read should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn read_block32(&mut self, address: u32, data: &mut [u32]) -> Result<(), Error>
Read a block of 32bit words at addr
.
The number of words read is data.len()
.
The address where the read should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn read_block8(&mut self, address: u32, data: &mut [u8]) -> Result<(), Error>
Read a block of 8bit words at addr
.
The number of words read is data.len()
.
The address where the read should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn write32(&mut self, addr: u32, data: u32) -> Result<(), Error>
Write a 32bit word at addr
.
The address where the write should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn write8(&mut self, addr: u32, data: u8) -> Result<(), Error>
Write an 8bit word at addr
.
The address where the write should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn write_block32(&mut self, addr: u32, data: &[u32]) -> Result<(), Error>
Write a block of 32bit words at addr
.
The number of words written is data.len()
.
The address where the write should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
fn write_block8(&mut self, addr: u32, data: &[u8]) -> Result<(), Error>
Write a block of 8bit words at addr
.
The number of words written is data.len()
.
The address where the write should be performed at has to be word aligned.
Returns AccessPortError::MemoryNotAligned
if this does not hold true.
Implementations on Foreign Types
impl<'_, T> MemoryInterface for &'_ mut T where
T: MemoryInterface,
[src]
T: MemoryInterface,
fn read32(&mut self, address: u32) -> Result<u32, Error>
[src]
fn read8(&mut self, address: u32) -> Result<u8, Error>
[src]
fn read_block32(&mut self, address: u32, data: &mut [u32]) -> Result<(), Error>
[src]
fn read_block8(&mut self, address: u32, data: &mut [u8]) -> Result<(), Error>
[src]
fn write32(&mut self, addr: u32, data: u32) -> Result<(), Error>
[src]
fn write8(&mut self, addr: u32, data: u8) -> Result<(), Error>
[src]
fn write_block32(&mut self, addr: u32, data: &[u32]) -> Result<(), Error>
[src]
fn write_block8(&mut self, addr: u32, data: &[u8]) -> Result<(), Error>
[src]
Implementors
impl MemoryInterface for RiscvCommunicationInterface
[src]
fn read32(&mut self, address: u32) -> Result<u32, Error>
[src]
fn read8(&mut self, address: u32) -> Result<u8, Error>
[src]
fn read_block32(&mut self, address: u32, data: &mut [u32]) -> Result<(), Error>
[src]
fn read_block8(&mut self, address: u32, data: &mut [u8]) -> Result<(), Error>
[src]
fn write32(&mut self, addr: u32, data: u32) -> Result<(), Error>
[src]
fn write8(&mut self, addr: u32, data: u8) -> Result<(), Error>
[src]
fn write_block32(&mut self, addr: u32, data: &[u32]) -> Result<(), Error>
[src]
fn write_block8(&mut self, addr: u32, data: &[u8]) -> Result<(), Error>
[src]
impl MemoryInterface for Core
[src]
fn read32(&mut self, address: u32) -> Result<u32, Error>
[src]
fn read8(&mut self, address: u32) -> Result<u8, Error>
[src]
fn read_block32(&mut self, address: u32, data: &mut [u32]) -> Result<(), Error>
[src]
fn read_block8(&mut self, address: u32, data: &mut [u8]) -> Result<(), Error>
[src]
fn write32(&mut self, addr: u32, data: u32) -> Result<(), Error>
[src]
fn write8(&mut self, addr: u32, data: u8) -> Result<(), Error>
[src]
fn write_block32(&mut self, addr: u32, data: &[u32]) -> Result<(), Error>
[src]
fn write_block8(&mut self, addr: u32, data: &[u8]) -> Result<(), Error>
[src]
impl<AP> MemoryInterface for ADIMemoryInterface<AP> where
AP: CommunicationInterface + APAccess<MemoryAP, CSW> + APAccess<MemoryAP, TAR> + APAccess<MemoryAP, DRW>,
[src]
AP: CommunicationInterface + APAccess<MemoryAP, CSW> + APAccess<MemoryAP, TAR> + APAccess<MemoryAP, DRW>,