Trait probe_rs::architecture::arm::component::DebugRegister
source · pub trait DebugRegister: Clone + From<u32> + Into<u32> + Sized + Debug {
const ADDRESS: u32;
const NAME: &'static str;
fn load(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<Self, ArmError> { ... }
fn load_unit(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<Self, ArmError> { ... }
fn store(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<(), ArmError> { ... }
fn store_unit(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<(), ArmError> { ... }
}
Expand description
A trait to be implemented on debug register types for debug component interfaces.
Required Associated Constants§
Provided Methods§
sourcefn load(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<Self, ArmError>
fn load(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<Self, ArmError>
Loads the register value from the given debug component via the given core.
sourcefn load_unit(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<Self, ArmError>
fn load_unit(
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<Self, ArmError>
Loads the register value from the given component in given unit via the given core.
sourcefn store(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<(), ArmError>
fn store(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface
) -> Result<(), ArmError>
Stores the register value to the given debug component via the given core.
sourcefn store_unit(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<(), ArmError>
fn store_unit(
&self,
component: &CoresightComponent,
interface: &mut dyn ArmProbeInterface,
unit: usize
) -> Result<(), ArmError>
Stores the register value to the given component in given unit via the given core.