probe_rs::architecture::arm::memory

Trait ArmMemoryInterface

Source
pub trait ArmMemoryInterface: SwdSequence + ArmMemoryInterfaceShim {
    // Required methods
    fn ap(&mut self) -> &mut MemoryAp;
    fn base_address(&mut self) -> Result<u64, ArmError>;
    fn get_arm_communication_interface(
        &mut self,
    ) -> Result<&mut ArmCommunicationInterface<Initialized>, DebugProbeError>;
    fn try_as_parts(
        &mut self,
    ) -> Result<(&mut ArmCommunicationInterface<Initialized>, &mut MemoryAp), DebugProbeError>;

    // Provided method
    fn update_core_status(&mut self, state: CoreStatus) { ... }
}
Expand description

An ArmMemoryInterface (ArmProbeInterface + MemoryAp)

Required Methods§

Source

fn ap(&mut self) -> &mut MemoryAp

The underlying MemoryAp.

Source

fn base_address(&mut self) -> Result<u64, ArmError>

The underlying memory AP’s base address.

Source

fn get_arm_communication_interface( &mut self, ) -> Result<&mut ArmCommunicationInterface<Initialized>, DebugProbeError>

The underlying ArmCommunicationInterface if this is an ArmCommunicationInterface.

Source

fn try_as_parts( &mut self, ) -> Result<(&mut ArmCommunicationInterface<Initialized>, &mut MemoryAp), DebugProbeError>

The underlying ArmCommunicationInterface and memory AP if the probe interface is an ArmCommunicationInterface.

Provided Methods§

Source

fn update_core_status(&mut self, state: CoreStatus)

Inform the probe of the CoreStatus of the chip/core attached to the probe.

Implementors§