probe_rs::architecture::arm

Trait ArmProbeInterface

Source
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§

Source

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.

Source

fn close(self: Box<Self>) -> Probe

Closes the interface and returns back the generic probe it consumed.

Source

fn current_debug_port(&self) -> DpAddress

Return the currently connected debug port.

Source

fn memory_interface( &mut self, access_port: &FullyQualifiedApAddress, ) -> Result<Box<dyn ArmMemoryInterface + '_>, ArmError>

Returns a memory interface to access the target’s memory.

Source

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.

Implementors§