Struct probe_rs::FakeProbe [−][src]
pub struct FakeProbe { /* fields omitted */ }
Implementations
Trait Implementations
Reads the DAP register on the specified port and address
fn write_register(
&mut self,
_port: PortType,
_addr: u8,
_value: u32
) -> Result<(), DebugProbeError>
fn write_register(
&mut self,
_port: PortType,
_addr: u8,
_value: u32
) -> Result<(), DebugProbeError>
Writes a value to the DAP register on the specified port and address
fn read_block(
&mut self,
port: PortType,
addr: u8,
values: &mut [u32]
) -> Result<(), DebugProbeError>
fn read_block(
&mut self,
port: PortType,
addr: u8,
values: &mut [u32]
) -> Result<(), DebugProbeError>
Read multiple values from the same DAP register. Read more
fn write_block(
&mut self,
port: PortType,
addr: u8,
values: &[u32]
) -> Result<(), DebugProbeError>
fn write_block(
&mut self,
port: PortType,
addr: u8,
values: &[u32]
) -> Result<(), DebugProbeError>
Write multiple values to the same DAP register. Read more
Leave debug mode
Resets the target device.
fn new_from_selector(
_selector: impl Into<DebugProbeSelector>
) -> Result<Box<Self>, DebugProbeError> where
Self: Sized,
Get the currently used maximum speed for the debug protocol in kHz. Read more
Set the speed in kHz used for communication with the target device. Read more
Selects the transport protocol to be used by the debug probe.
This should assert the reset pin of the target via debug probe.
This should deassert the reset pin of the target via debug probe.
Check if the proble offers an interface to debug ARM chips.
fn try_get_arm_interface<'probe>(
self: Box<Self>
) -> Result<Box<dyn ArmProbeInterface + 'probe>, (Box<dyn DebugProbe>, DebugProbeError)>
fn try_get_arm_interface<'probe>(
self: Box<Self>
) -> Result<Box<dyn ArmProbeInterface + 'probe>, (Box<dyn DebugProbe>, DebugProbeError)>
Get the dedicated interface to debug ARM chips. To check that the probe actually supports this, call DebugProbe::has_arm_interface first. Read more
fn try_get_riscv_interface(
self: Box<Self>
) -> Result<RiscvCommunicationInterface, (Box<dyn DebugProbe>, DebugProbeError)>
fn try_get_riscv_interface(
self: Box<Self>
) -> Result<RiscvCommunicationInterface, (Box<dyn DebugProbe>, DebugProbeError)>
Get the dedicated interface to debug RISCV chips. Ensure that the probe actually supports this by calling DebugProbe::has_riscv_interface first. Read more
Check if the probe offers an interface to debug RISCV chips.
Reads the target voltage in Volts, if possible. Returns Ok(None)
if the probe doesn’t support reading the target voltage. Read more
Auto Trait Implementations
impl RefUnwindSafe for FakeProbe
impl UnwindSafe for FakeProbe