#[repr(transparent)]pub struct OtpVersion(pub u32);Expand description
VERSION ID register
Tuple Fields§
§0: u32Implementations§
Source§impl OtpVersion
impl OtpVersion
Sourcepub const fn set_step_ver(&mut self, val: u16)
pub const fn set_step_ver(&mut self, val: u16)
OTP controller step version
Sourcepub const fn set_minor_ver(&mut self, val: u8)
pub const fn set_minor_ver(&mut self, val: u8)
OTP controller minor version
Sourcepub const fn set_major_ver(&mut self, val: u8)
pub const fn set_major_ver(&mut self, val: u8)
OTP controller major version
Trait Implementations§
Source§impl Clone for OtpVersion
impl Clone for OtpVersion
Source§fn clone(&self) -> OtpVersion
fn clone(&self) -> OtpVersion
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 OtpVersion
impl Debug for OtpVersion
Source§impl Default for OtpVersion
impl Default for OtpVersion
Source§fn default() -> OtpVersion
fn default() -> OtpVersion
Returns the “default value” for a type. Read more
Source§impl PartialEq for OtpVersion
impl PartialEq for OtpVersion
impl Copy for OtpVersion
impl Eq for OtpVersion
impl StructuralPartialEq for OtpVersion
Auto Trait Implementations§
impl Freeze for OtpVersion
impl RefUnwindSafe for OtpVersion
impl Send for OtpVersion
impl Sync for OtpVersion
impl Unpin for OtpVersion
impl UnwindSafe for OtpVersion
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