[][src]Trait probe_rs::coresight::ap_access::APAccess

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

Associated Types

type Error: Error

Loading content...

Required methods

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

fn read_ap_register_repeated(
    &mut self,
    port: PORT,
    register: REGISTER,
    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: REGISTER
) -> Result<(), Self::Error>

fn write_ap_register_repeated(
    &mut self,
    port: PORT,
    register: REGISTER,
    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, REGISTER> APAccess<PORT, REGISTER> for &'a mut T where
    T: APAccess<PORT, REGISTER>,
    PORT: AccessPort,
    REGISTER: APRegister<PORT>, 
[src]

type Error = T::Error

Loading content...

Implementors

impl<REGISTER> APAccess<GenericAP, REGISTER> for MasterProbe where
    REGISTER: APRegister<GenericAP>, 
[src]

type Error = DebugProbeError

impl<REGISTER> APAccess<MemoryAP, REGISTER> for MasterProbe where
    REGISTER: APRegister<MemoryAP>, 
[src]

type Error = DebugProbeError

Loading content...