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§

The address of the register.

The name of the register.

Provided Methods§

Loads the register value from the given debug component via the given core.

Loads the register value from the given component in given unit via the given core.

Stores the register value to the given debug component via the given core.

Stores the register value to the given component in given unit via the given core.

Implementors§