pub struct Trace<'d> { /* private fields */ }
Expand description
TRACE Encoder Instance
Implementations§
Source§impl<'d> Trace<'d>
impl<'d> Trace<'d>
Sourcepub fn new(peripheral: impl Peripheral<P = TRACE> + 'd) -> Trace<'d>
pub fn new(peripheral: impl Peripheral<P = TRACE> + 'd) -> Trace<'d>
Construct a new instance
Sourcepub fn start_trace(&mut self, buffer: &'d mut [u8])
pub fn start_trace(&mut self, buffer: &'d mut [u8])
Start tracing, writing data into the buffer
Sourcepub fn stop_trace(&mut self) -> Result<TraceResult, Error>
pub fn stop_trace(&mut self) -> Result<TraceResult, Error>
Stop tracing
Be aware that valid data might not start at index 0 and you need to account for wrapping when reading the data.
Auto Trait Implementations§
impl<'d> Freeze for Trace<'d>
impl<'d> RefUnwindSafe for Trace<'d>
impl<'d> Send for Trace<'d>
impl<'d> Sync for Trace<'d>
impl<'d> Unpin for Trace<'d>
impl<'d> !UnwindSafe for Trace<'d>
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