[][src]Trait probe_rs::architecture::arm::DAPAccess

pub trait DAPAccess: DebugProbe {
    fn read_register(
        &mut self,
        port: PortType,
        addr: u16
    ) -> Result<u32, DebugProbeError>;
fn write_register(
        &mut self,
        port: PortType,
        addr: u16,
        value: u32
    ) -> Result<(), DebugProbeError>; fn read_block(
        &mut self,
        port: PortType,
        addr: u16,
        values: &mut [u32]
    ) -> Result<(), DebugProbeError> { ... }
fn write_block(
        &mut self,
        port: PortType,
        addr: u16,
        values: &[u32]
    ) -> Result<(), DebugProbeError> { ... } }

Required methods

fn read_register(
    &mut self,
    port: PortType,
    addr: u16
) -> Result<u32, DebugProbeError>

Reads the DAP register on the specified port and address

fn write_register(
    &mut self,
    port: PortType,
    addr: u16,
    value: u32
) -> Result<(), DebugProbeError>

Writes a value to the DAP register on the specified port and address

Loading content...

Provided methods

fn read_block(
    &mut self,
    port: PortType,
    addr: u16,
    values: &mut [u32]
) -> Result<(), DebugProbeError>

Read multiple values from the same DAP register.

If possible, this uses optimized read functions, otherwise it falls back to the read_register function.

fn write_block(
    &mut self,
    port: PortType,
    addr: u16,
    values: &[u32]
) -> Result<(), DebugProbeError>

Write multiple values to the same DAP register.

If possible, this uses optimized write functions, otherwise it falls back to the write_register function.

Loading content...

Implementors

Loading content...