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