[][src]Trait debug_probe::debug_probe::DAPAccess

pub trait DAPAccess {
    fn read_register(
        &mut self,
        port: Port,
        addr: u16
    ) -> Result<u32, DebugProbeError>;
fn write_register(
        &mut self,
        port: Port,
        addr: u16,
        value: u32
    ) -> Result<(), DebugProbeError>; }

Required methods

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

Reads the DAP register on the specified port and address

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

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

Loading content...

Implementors

impl DAPAccess for FakeProbe[src]

fn read_register(
    &mut self,
    port: Port,
    addr: u16
) -> Result<u32, DebugProbeError>
[src]

Reads the DAP register on the specified port and address

fn write_register(
    &mut self,
    port: Port,
    addr: u16,
    value: u32
) -> Result<(), DebugProbeError>
[src]

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

Loading content...