[][src]Struct probe_rs::probe::MasterProbe

pub struct MasterProbe { /* fields omitted */ }

The MasterProbe struct is a generic wrapper over the different probes supported.

Examples

Open the first probe found

The list_all and from_probe_info functions can be used to create a new MasterProbe::

use probe_rs::probe::MasterProbe;

let probe_list = MasterProbe::list_all();
let probe = MasterProbe::from_probe_info(&probe_list[0]);

Methods

impl MasterProbe[src]

pub fn list_all() -> Vec<DebugProbeInfo>[src]

Get a list of all debug probes found. This can be used to select the debug probe which should be used.

pub fn from_probe_info(info: &DebugProbeInfo) -> Result<Self, DebugProbeError>[src]

Create a MasterProbe from DebugProbeInfo. Use the MasterProbe::list_all() function to get the information about all probes available.

pub fn from_specific_probe(probe: Box<dyn DebugProbe>) -> Self[src]

pub fn target_reset(&mut self) -> Result<(), DebugProbeError>[src]

pub fn read_register_dp(&mut self, offset: u16) -> Result<u32, DebugProbeError>[src]

pub fn write_register_dp(
    &mut self,
    offset: u16,
    val: u32
) -> Result<(), DebugProbeError>
[src]

pub fn nrf_recover(&mut self) -> Result<(), DebugProbeError>[src]

Tries to mass erase a locked nRF52 chip, this process may timeout, if it does, the chip might be unlocked or not, it is advised to try again if flashing fails

Trait Implementations

impl<REGISTER> APAccess<GenericAP, REGISTER> for MasterProbe where
    REGISTER: APRegister<GenericAP>, 
[src]

type Error = DebugProbeError

impl<REGISTER> APAccess<MemoryAP, REGISTER> for MasterProbe where
    REGISTER: APRegister<MemoryAP>, 
[src]

type Error = DebugProbeError

impl MI for MasterProbe[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.