Trait probe_rs::architecture::arm::ArmProbeInterface
source · [−]pub trait ArmProbeInterface: DapAccess + SwdSequence + SwoAccess + Send {
fn memory_interface(
&mut self,
access_port: MemoryAp
) -> Result<Memory<'_>, ProbeRsError>;
fn ap_information(
&mut self,
access_port: GenericAp
) -> Result<&ApInformation, ProbeRsError>;
fn num_access_ports(&mut self, dp: DpAddress) -> Result<usize, ProbeRsError>;
fn read_chip_info_from_rom_table(
&mut self,
dp: DpAddress
) -> Result<Option<ArmChipInfo>, ProbeRsError>;
fn close(self: Box<Self>) -> Probe;
}
Expand description
To be implemented by debug probe drivers that support debugging ARM cores.
Required Methods
fn memory_interface(
&mut self,
access_port: MemoryAp
) -> Result<Memory<'_>, ProbeRsError>
fn memory_interface(
&mut self,
access_port: MemoryAp
) -> Result<Memory<'_>, ProbeRsError>
Returns a memory interface to access the target’s memory.
fn ap_information(
&mut self,
access_port: GenericAp
) -> Result<&ApInformation, ProbeRsError>
fn ap_information(
&mut self,
access_port: GenericAp
) -> Result<&ApInformation, ProbeRsError>
Returns information about a specific access port.
fn num_access_ports(&mut self, dp: DpAddress) -> Result<usize, ProbeRsError>
fn num_access_ports(&mut self, dp: DpAddress) -> Result<usize, ProbeRsError>
Returns the number of access ports the debug port has.
fn read_chip_info_from_rom_table(
&mut self,
dp: DpAddress
) -> Result<Option<ArmChipInfo>, ProbeRsError>
fn read_chip_info_from_rom_table(
&mut self,
dp: DpAddress
) -> Result<Option<ArmChipInfo>, ProbeRsError>
Reads the chip info from the romtable of given debug port.