pub struct ControlRegister2(/* private fields */);Expand description
The layout of CR2.
Implementations§
Source§impl ControlRegister2
impl ControlRegister2
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 ADDRESS_MASK: u64
pub const ADDRESS_MASK: u64
Unshifted bitmask of address.
Sourcepub const ADDRESS_SHIFT: usize = 0
pub const ADDRESS_SHIFT: usize = 0
Bit shift (i.e., the low bit) of address.
Sourcepub const FIELDS: [FieldMetadata<u64>; 1]
pub const FIELDS: [FieldMetadata<u64>; 1]
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_address(&mut self, value: u64) -> &mut Self
pub const fn set_address(&mut self, value: u64) -> &mut Self
Sets the value of ControlRegister2[63:0].
Trait Implementations§
Source§impl Binary for ControlRegister2
impl Binary for ControlRegister2
Source§impl Clone for ControlRegister2
impl Clone for ControlRegister2
Source§fn clone(&self) -> ControlRegister2
fn clone(&self) -> ControlRegister2
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 ControlRegister2
Source§impl Debug for ControlRegister2
impl Debug for ControlRegister2
Source§impl Default for ControlRegister2
impl Default for ControlRegister2
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 ControlRegister2
Source§impl From<ControlRegister2> for u64
impl From<ControlRegister2> for u64
Source§fn from(value: ControlRegister2) -> Self
fn from(value: ControlRegister2) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ControlRegister2
impl From<u64> for ControlRegister2
Source§impl IntoIterator for ControlRegister2
impl IntoIterator for ControlRegister2
Source§impl<'a> IntoIterator for &'a ControlRegister2
impl<'a> IntoIterator for &'a ControlRegister2
Source§impl LowerHex for ControlRegister2
impl LowerHex for ControlRegister2
Source§impl Octal for ControlRegister2
impl Octal for ControlRegister2
Source§impl PartialEq for ControlRegister2
impl PartialEq for ControlRegister2
impl StructuralPartialEq for ControlRegister2
Auto Trait Implementations§
impl Freeze for ControlRegister2
impl RefUnwindSafe for ControlRegister2
impl Send for ControlRegister2
impl Sync for ControlRegister2
impl Unpin for ControlRegister2
impl UnsafeUnpin for ControlRegister2
impl UnwindSafe for ControlRegister2
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)