#[repr(transparent)]pub struct HwVer(pub u32);Expand description
Hardware Version
Tuple Fields§
§0: u32Implementations§
Source§impl HwVer
impl HwVer
Sourcepub const fn set_hw_rev(&mut self, val: u8)
pub const fn set_hw_rev(&mut self, val: u8)
Provides the hardware version, patch part
Sourcepub const fn hw_version_minor(&self) -> u8
pub const fn hw_version_minor(&self) -> u8
Provides the hardware version, minor part
Sourcepub const fn set_hw_version_minor(&mut self, val: u8)
pub const fn set_hw_version_minor(&mut self, val: u8)
Provides the hardware version, minor part
Sourcepub const fn hw_version_major(&self) -> u8
pub const fn hw_version_major(&self) -> u8
Provides the hardware version, major part
Sourcepub const fn set_hw_version_major(&mut self, val: u8)
pub const fn set_hw_version_major(&mut self, val: u8)
Provides the hardware version, major part
Trait Implementations§
impl Copy for HwVer
impl Eq for HwVer
impl StructuralPartialEq for HwVer
Auto Trait Implementations§
impl Freeze for HwVer
impl RefUnwindSafe for HwVer
impl Send for HwVer
impl Sync for HwVer
impl Unpin for HwVer
impl UnwindSafe for HwVer
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