[][src]Trait probe_rs::DebugProbe

pub trait DebugProbe: Send + Sync + Debug {
    fn new_from_probe_info(
        info: &DebugProbeInfo
    ) -> Result<Box<Self>, DebugProbeError>
    where
        Self: Sized
;
fn get_name(&self) -> &str;
fn attach(&mut self) -> Result<(), DebugProbeError>;
fn detach(&mut self) -> Result<(), DebugProbeError>;
fn target_reset(&mut self) -> Result<(), DebugProbeError>;
fn select_protocol(
        &mut self,
        protocol: WireProtocol
    ) -> Result<(), DebugProbeError>;
fn dedicated_memory_interface(&self) -> Option<Memory>;
fn get_interface_dap(&self) -> Option<&dyn DAPAccess>;
fn get_interface_dap_mut(&mut self) -> Option<&mut dyn DAPAccess>;
fn get_interface_jtag(&self) -> Option<&dyn JTAGAccess>;
fn get_interface_jtag_mut(&mut self) -> Option<&mut dyn JTAGAccess>; }

Required methods

fn new_from_probe_info(
    info: &DebugProbeInfo
) -> Result<Box<Self>, DebugProbeError> where
    Self: Sized

fn get_name(&self) -> &str

Get human readable name for the probe

fn attach(&mut self) -> Result<(), DebugProbeError>

Enters debug mode

fn detach(&mut self) -> Result<(), DebugProbeError>

Leave debug mode

fn target_reset(&mut self) -> Result<(), DebugProbeError>

Resets the target device.

fn select_protocol(
    &mut self,
    protocol: WireProtocol
) -> Result<(), DebugProbeError>

Selects the transport protocol to be used by the debug probe.

fn dedicated_memory_interface(&self) -> Option<Memory>

Returns a probe specific memory interface if any is present for given probe.

fn get_interface_dap(&self) -> Option<&dyn DAPAccess>

fn get_interface_dap_mut(&mut self) -> Option<&mut dyn DAPAccess>

fn get_interface_jtag(&self) -> Option<&dyn JTAGAccess>

fn get_interface_jtag_mut(&mut self) -> Option<&mut dyn JTAGAccess>

Loading content...

Implementors

Loading content...