[−][src]Trait probe_rs::architecture::arm::DAPAccess
Required methods
pub fn read_register(
&mut self,
port: PortType,
addr: u16
) -> Result<u32, DebugProbeError>
&mut self,
port: PortType,
addr: u16
) -> Result<u32, DebugProbeError>
Reads the DAP register on the specified port and address
pub fn write_register(
&mut self,
port: PortType,
addr: u16,
value: u32
) -> Result<(), DebugProbeError>
&mut self,
port: PortType,
addr: u16,
value: u32
) -> Result<(), DebugProbeError>
Writes a value to the DAP register on the specified port and address
pub fn into_probe(self: Box<Self>) -> Box<dyn DebugProbe>
Provided methods
pub fn read_block(
&mut self,
port: PortType,
addr: u16,
values: &mut [u32]
) -> Result<(), DebugProbeError>
&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.
pub fn write_block(
&mut self,
port: PortType,
addr: u16,
values: &[u32]
) -> Result<(), DebugProbeError>
&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.
pub fn flush(&mut self) -> Result<(), DebugProbeError>
Flush any outstanding writes.
By default, this does nothing -- but in probes that implement write batching, this needs to flush any pending writes.