pub struct DieId {
pub device: u16,
pub revision: u8,
}Expand description
The die ID register (0xFF), split into its device and revision fields.
Fields§
§device: u16The 12-bit device identifier, DEVICE_ID for an INA226.
revision: u8The 4-bit die revision.
Implementations§
Trait Implementations§
impl Copy for DieId
impl Eq for DieId
impl StructuralPartialEq for DieId
Auto Trait Implementations§
impl Freeze for DieId
impl RefUnwindSafe for DieId
impl Send for DieId
impl Sync for DieId
impl Unpin for DieId
impl UnsafeUnpin for DieId
impl UnwindSafe for DieId
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