pub trait ApAccess {
    fn read_ap_register<PORT, R>(
        &mut self,
        port: impl Into<PORT>
    ) -> Result<R, ArmError>
    where
        PORT: AccessPort,
        R: ApRegister<PORT>
; fn read_ap_register_repeated<PORT, R>(
        &mut self,
        port: impl Into<PORT> + Clone,
        register: R,
        values: &mut [u32]
    ) -> Result<(), ArmError>
    where
        PORT: AccessPort,
        R: ApRegister<PORT>
; fn write_ap_register<PORT, R>(
        &mut self,
        port: impl Into<PORT>,
        register: R
    ) -> Result<(), ArmError>
    where
        PORT: AccessPort,
        R: ApRegister<PORT>
; fn write_ap_register_repeated<PORT, R>(
        &mut self,
        port: impl Into<PORT> + Clone,
        register: R,
        values: &[u32]
    ) -> Result<(), ArmError>
    where
        PORT: AccessPort,
        R: ApRegister<PORT>
; }
Expand description

A trait to be implemented by access port drivers to implement access port operations.

Required Methods§

Read a register of the access port.

Read a register of the access port using a block transfer. This can be used to read multiple values from the same register.

Write a register of the access port.

Write a register of the access port using a block transfer. This can be used to write multiple values to the same register.

Implementors§