pub struct VersionReg(/* private fields */);Expand description
Version Register (MMIO offset 0x000, 32-bit, RO). §10.4.1.
Reports the architecture version implemented by the hardware.
Implementations§
Source§impl VersionReg
impl VersionReg
Sourcepub const fn with_min_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_min_checked(self, value: u8) -> Result<Self, ()>
Minor version number.
Bits: 0..4
Sourcepub const fn set_min_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_min_checked(&mut self, value: u8) -> Result<(), ()>
Minor version number.
Bits: 0..4
Sourcepub const fn with_max_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_max_checked(self, value: u8) -> Result<Self, ()>
Major version number.
Bits: 4..8
Trait Implementations§
Source§impl Clone for VersionReg
impl Clone for VersionReg
Source§fn clone(&self) -> VersionReg
fn clone(&self) -> VersionReg
Returns a duplicate 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 Debug for VersionReg
impl Debug for VersionReg
Source§impl Default for VersionReg
impl Default for VersionReg
Source§impl From<VersionReg> for u32
impl From<VersionReg> for u32
Source§fn from(v: VersionReg) -> u32
fn from(v: VersionReg) -> u32
Converts to this type from the input type.
Source§impl From<u32> for VersionReg
impl From<u32> for VersionReg
impl Copy for VersionReg
Auto Trait Implementations§
impl Freeze for VersionReg
impl RefUnwindSafe for VersionReg
impl Send for VersionReg
impl Sync for VersionReg
impl Unpin for VersionReg
impl UnsafeUnpin for VersionReg
impl UnwindSafe for VersionReg
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