pub struct SupervisorCause(/* private fields */);Expand description
The layout of SCAUSE.
Implementations§
Source§impl SupervisorCause
impl SupervisorCause
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const INTERRUPT_MASK: u64
pub const INTERRUPT_MASK: u64
Unshifted bitmask of interrupt.
Sourcepub const INTERRUPT_SHIFT: usize = 63
pub const INTERRUPT_SHIFT: usize = 63
Bit shift (i.e., the low bit) of interrupt.
Sourcepub const CODE_SHIFT: usize = 0
pub const CODE_SHIFT: usize = 0
Bit shift (i.e., the low bit) of code.
Sourcepub const FIELDS: [FieldMetadata<u64>; 2]
pub const FIELDS: [FieldMetadata<u64>; 2]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_interrupt(&mut self, value: bool) -> &mut Self
pub const fn set_interrupt(&mut self, value: bool) -> &mut Self
Sets the value of SupervisorCause63.
Source§impl SupervisorCause
impl SupervisorCause
pub fn exception_code(self) -> Option<ExceptionCode>
pub fn interrupt_code(self) -> Option<InterruptCode>
Trait Implementations§
Source§impl Binary for SupervisorCause
impl Binary for SupervisorCause
Source§impl Clone for SupervisorCause
impl Clone for SupervisorCause
Source§fn clone(&self) -> SupervisorCause
fn clone(&self) -> SupervisorCause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SupervisorCause
Source§impl Debug for SupervisorCause
impl Debug for SupervisorCause
Source§impl Default for SupervisorCause
impl Default for SupervisorCause
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for SupervisorCause
Source§impl From<SupervisorCause> for u64
impl From<SupervisorCause> for u64
Source§fn from(value: SupervisorCause) -> Self
fn from(value: SupervisorCause) -> Self
Converts to this type from the input type.
Source§impl From<u64> for SupervisorCause
impl From<u64> for SupervisorCause
Source§impl IntoIterator for SupervisorCause
impl IntoIterator for SupervisorCause
Source§impl<'a> IntoIterator for &'a SupervisorCause
impl<'a> IntoIterator for &'a SupervisorCause
Source§impl LowerHex for SupervisorCause
impl LowerHex for SupervisorCause
Source§impl Octal for SupervisorCause
impl Octal for SupervisorCause
Source§impl PartialEq for SupervisorCause
impl PartialEq for SupervisorCause
impl StructuralPartialEq for SupervisorCause
Auto Trait Implementations§
impl Freeze for SupervisorCause
impl RefUnwindSafe for SupervisorCause
impl Send for SupervisorCause
impl Sync for SupervisorCause
impl Unpin for SupervisorCause
impl UnsafeUnpin for SupervisorCause
impl UnwindSafe for SupervisorCause
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)