pub struct Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> { /* private fields */ }Expand description
DAP handler.
Implementations§
Source§impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
Sourcepub fn new(
dependencies: DEPS,
leds: LEDS,
wait: WAIT,
swo: Option<SWO>,
version_string: &'a str,
) -> Self
pub fn new( dependencies: DEPS, leds: LEDS, wait: WAIT, swo: Option<SWO>, version_string: &'a str, ) -> Self
Create a Dap handler
Sourcepub fn process_command(
&mut self,
report: &[u8],
rbuf: &mut [u8],
version: DapVersion,
) -> usize
pub fn process_command( &mut self, report: &[u8], rbuf: &mut [u8], version: DapVersion, ) -> usize
Process a new CMSIS-DAP command from report.
Returns number of bytes written to response buffer.
Auto Trait Implementations§
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Freeze for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> RefUnwindSafe for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>where
LEDS: RefUnwindSafe,
WAIT: RefUnwindSafe,
DEPS: RefUnwindSafe,
SWD: RefUnwindSafe,
JTAG: RefUnwindSafe,
SWO: RefUnwindSafe,
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Send for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Sync for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> Unpin for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>
impl<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO> UnwindSafe for Dap<'a, DEPS, LEDS, WAIT, JTAG, SWD, SWO>where
LEDS: UnwindSafe,
WAIT: UnwindSafe,
DEPS: UnwindSafe,
SWD: UnwindSafe,
JTAG: UnwindSafe,
SWO: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more