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§
Sourcefn base_address(&mut self) -> Result<u64, ArmError>
fn base_address(&mut self) -> Result<u64, ArmError>
The underlying memory AP’s base address.
Sourcefn get_arm_communication_interface(
&mut self,
) -> Result<&mut ArmCommunicationInterface<Initialized>, DebugProbeError>
fn get_arm_communication_interface( &mut self, ) -> Result<&mut ArmCommunicationInterface<Initialized>, DebugProbeError>
The underlying ArmCommunicationInterface
if this is an ArmCommunicationInterface
.
Sourcefn try_as_parts(
&mut self,
) -> Result<(&mut ArmCommunicationInterface<Initialized>, &mut MemoryAp), DebugProbeError>
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§
Sourcefn update_core_status(&mut self, state: CoreStatus)
fn update_core_status(&mut self, state: CoreStatus)
Inform the probe of the CoreStatus
of the chip/core attached to
the probe.