pub trait DpAccess {
    fn read_dp_register<R: DpRegister>(
        &mut self,
        dp: DpAddress
    ) -> Result<R, ArmError>; fn write_dp_register<R: DpRegister>(
        &mut self,
        dp: DpAddress,
        register: R
    ) -> Result<(), ArmError>; }
Expand description

A typed interface to be implemented on drivers that can control a debug port.

Required Methods§

Reads a debug port register.

If the target device has multiple debug ports, this will change the active debug port if necessary. In this case all pending operations will be run, and errors returned by this function can also be from these operations.

Write a debug port register.

If the target device has multiple debug ports, this will change the active debug port if necessary. In this case all pending operations will be run, and errors returned by this function can also be from these operations.

Implementors§