[][src]Struct probe_rs::probe::daplink::DAPLink

pub struct DAPLink {
    pub device: Mutex<HidDevice>,
    // some fields omitted
}

Fields

device: Mutex<HidDevice>

Methods

impl DAPLink[src]

pub fn new_from_device(device: HidDevice) -> Self[src]

Trait Implementations

impl DAPAccess for DAPLink[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.

impl<P: DebugPort, R: DPRegister<P>> DPAccess<P, R> for DAPLink[src]

type Error = DebugProbeError

impl DebugProbe for DAPLink[src]

fn attach(
    &mut self,
    protocol: Option<WireProtocol>
) -> Result<WireProtocol, DebugProbeError>
[src]

Enters debug mode.

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

Leave debug mode.

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

Asserts the nRESET pin.

impl Drop for DAPLink[src]

Auto Trait Implementations

impl RefUnwindSafe for DAPLink

impl Send for DAPLink

impl Sync for DAPLink

impl Unpin for DAPLink

impl UnwindSafe for DAPLink

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.