[][src]Trait probe_rs::architecture::arm::ap::APAccess

pub trait APAccess<PORT, R> where
    PORT: AccessPort,
    R: APRegister<PORT>, 
{ type Error: Error; fn read_ap_register(
        &mut self,
        port: PORT,
        register: R
    ) -> Result<R, Self::Error>;
fn read_ap_register_repeated(
        &mut self,
        port: PORT,
        register: R,
        values: &mut [u32]
    ) -> Result<(), Self::Error>;
fn write_ap_register(
        &mut self,
        port: PORT,
        register: R
    ) -> Result<(), Self::Error>;
fn write_ap_register_repeated(
        &mut self,
        port: PORT,
        register: R,
        values: &[u32]
    ) -> Result<(), Self::Error>; }

Associated Types

type Error: Error

Loading content...

Required methods

fn read_ap_register(
    &mut self,
    port: PORT,
    register: R
) -> Result<R, Self::Error>

fn read_ap_register_repeated(
    &mut self,
    port: PORT,
    register: R,
    values: &mut [u32]
) -> Result<(), Self::Error>

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

fn write_ap_register(
    &mut self,
    port: PORT,
    register: R
) -> Result<(), Self::Error>

fn write_ap_register_repeated(
    &mut self,
    port: PORT,
    register: R,
    values: &[u32]
) -> Result<(), Self::Error>

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

Loading content...

Implementations on Foreign Types

impl<'a, T, PORT, R> APAccess<PORT, R> for &'a mut T where
    T: APAccess<PORT, R>,
    PORT: AccessPort,
    R: APRegister<PORT>, 
[src]

type Error = T::Error

Loading content...

Implementors

impl<R> APAccess<GenericAP, R> for ArmCommunicationInterface where
    R: APRegister<GenericAP>, 
[src]

type Error = DebugProbeError

impl<R> APAccess<MemoryAP, R> for ArmCommunicationInterface where
    R: APRegister<MemoryAP>, 
[src]

type Error = DebugProbeError

Loading content...