pub trait ArmProbeInterface:
DapAccess
+ SwdSequence
+ SwoAccess
+ Send {
// Required methods
fn access_ports(
&mut self,
dp: DpAddress,
) -> Result<BTreeSet<FullyQualifiedApAddress>, ArmError>;
fn close(self: Box<Self>) -> Probe;
fn current_debug_port(&self) -> DpAddress;
fn memory_interface(
&mut self,
access_port: &FullyQualifiedApAddress,
) -> Result<Box<dyn ArmMemoryInterface + '_>, ArmError>;
fn read_chip_info_from_rom_table(
&mut self,
dp: DpAddress,
) -> Result<Option<ArmChipInfo>, ArmError>;
}
Expand description
To be implemented by debug probe drivers that support debugging ARM cores.
Required Methods§
Sourcefn access_ports(
&mut self,
dp: DpAddress,
) -> Result<BTreeSet<FullyQualifiedApAddress>, ArmError>
fn access_ports( &mut self, dp: DpAddress, ) -> Result<BTreeSet<FullyQualifiedApAddress>, ArmError>
Returns a vector of all the access ports the current debug port has.
If the target device has multiple debug ports, this will switch the active debug port if necessary.
Sourcefn close(self: Box<Self>) -> Probe
fn close(self: Box<Self>) -> Probe
Closes the interface and returns back the generic probe it consumed.
Sourcefn current_debug_port(&self) -> DpAddress
fn current_debug_port(&self) -> DpAddress
Return the currently connected debug port.
Sourcefn memory_interface(
&mut self,
access_port: &FullyQualifiedApAddress,
) -> Result<Box<dyn ArmMemoryInterface + '_>, ArmError>
fn memory_interface( &mut self, access_port: &FullyQualifiedApAddress, ) -> Result<Box<dyn ArmMemoryInterface + '_>, ArmError>
Returns a memory interface to access the target’s memory.
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.