#[repr(transparent)]pub struct ChipId(pub u32);
Expand description
JEDEC JEP-106 compliant chip identifier.
Tuple Fields§
§0: u32
Implementations§
source§impl ChipId
impl ChipId
pub const fn stop_bit(&self) -> bool
pub fn set_stop_bit(&mut self, val: bool)
pub const fn manufacturer(&self) -> u16
pub fn set_manufacturer(&mut self, val: u16)
pub const fn part(&self) -> u16
pub fn set_part(&mut self, val: u16)
pub const fn revision(&self) -> u8
pub fn set_revision(&mut self, val: u8)
Trait Implementations§
impl Copy for ChipId
impl Eq for ChipId
impl StructuralPartialEq for ChipId
Auto Trait Implementations§
impl Freeze for ChipId
impl RefUnwindSafe for ChipId
impl Send for ChipId
impl Sync for ChipId
impl Unpin for ChipId
impl UnwindSafe for ChipId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)