#[repr(transparent)]pub struct Trctraceidr(pub u32);
Expand description
Sets the trace ID for instruction trace. If data trace is enabled then it also sets the trace ID for data trace, to (trace ID for instruction trace) + 1. This register must always be programmed as part of trace unit initialization. Might ignore writes when the trace unit is enabled or not idle.
Tuple Fields§
§0: u32
Implementations§
Source§impl Trctraceidr
impl Trctraceidr
Sourcepub const fn traceid(&self) -> u8
pub const fn traceid(&self) -> u8
Trace ID field. Sets the trace ID value for instruction trace. Bit[0] must be zero if data trace is enabled. If data trace is enabled then a trace unit sets the trace ID for data trace, to TRACEID+1.
Sourcepub fn set_traceid(&mut self, val: u8)
pub fn set_traceid(&mut self, val: u8)
Trace ID field. Sets the trace ID value for instruction trace. Bit[0] must be zero if data trace is enabled. If data trace is enabled then a trace unit sets the trace ID for data trace, to TRACEID+1.
Trait Implementations§
Source§impl Clone for Trctraceidr
impl Clone for Trctraceidr
Source§fn clone(&self) -> Trctraceidr
fn clone(&self) -> Trctraceidr
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Trctraceidr
impl Default for Trctraceidr
Source§fn default() -> Trctraceidr
fn default() -> Trctraceidr
Returns the “default value” for a type. Read more
Source§impl PartialEq for Trctraceidr
impl PartialEq for Trctraceidr
impl Copy for Trctraceidr
impl Eq for Trctraceidr
impl StructuralPartialEq for Trctraceidr
Auto Trait Implementations§
impl Freeze for Trctraceidr
impl RefUnwindSafe for Trctraceidr
impl Send for Trctraceidr
impl Sync for Trctraceidr
impl Unpin for Trctraceidr
impl UnwindSafe for Trctraceidr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)