pub struct Trace<'d, T> { /* private fields */ }Expand description
TRACE Encoder Instance
Implementations§
Source§impl<'d, T> Trace<'d, T>where
T: Instance,
impl<'d, T> Trace<'d, T>where
T: Instance,
Sourcepub fn new(peripheral: impl Peripheral<P = T> + 'd) -> Self
pub fn new(peripheral: impl Peripheral<P = T> + 'd) -> Self
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, T> Freeze for Trace<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Trace<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Trace<'d, T>where
T: Send,
impl<'d, T> Sync for Trace<'d, T>where
T: Sync,
impl<'d, T> Unpin for Trace<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Trace<'d, T>
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