pub trait ArmProbeInterface: DapAccess + SwdSequence + SwoAccess + Send {
    // Required methods
    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§

source

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

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

source

fn ap_information( &mut self, access_port: GenericAp ) -> Result<&ApInformation, ArmError>

Returns information about a specific access port.

source

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

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.

source

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

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

Implementors§