pub struct IDCODE(pub u32);
Tuple Fields
0: u32
Implementations
sourceimpl IDCODE
impl IDCODE
pub fn valid(&self) -> bool
sourcepub fn manufacturer(&self) -> u16
pub fn manufacturer(&self) -> u16
Extract the manufacturer ID, which is an 11-bit field in bits 1-11.
sourcepub fn manufacturer_name(&self) -> Option<&'static str>
pub fn manufacturer_name(&self) -> Option<&'static str>
Return the manufacturer name, if available.
sourcepub fn part_number(&self) -> u16
pub fn part_number(&self) -> u16
Extract the part number, which is a 16-bit field in bits 12-27.
Trait Implementations
impl Copy for IDCODE
impl StructuralPartialEq for IDCODE
Auto Trait Implementations
impl RefUnwindSafe for IDCODE
impl Send for IDCODE
impl Sync for IDCODE
impl Unpin for IDCODE
impl UnwindSafe for IDCODE
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more