Struct stm32wlxx_hal::info::Uid
source · pub struct Uid { /* private fields */ }
Expand description
96-bit unique device identifier
Note: There are two UIDs, the other is Uid64
.
Implementations§
source§impl Uid
impl Uid
sourcepub const PTR: *const u32 = {0x1fff7590 as *const u32}
pub const PTR: *const u32 = {0x1fff7590 as *const u32}
Pointer to the 96-bit unique device identifier device memory.
sourcepub fn from_device() -> Uid
pub fn from_device() -> Uid
Get the 96-bit unique device identifier
Example
use stm32wlxx_hal::info::Uid;
let uid: Uid = Uid::from_device();
sourcepub const fn coord(&self) -> u32
pub const fn coord(&self) -> u32
X-Y coordinates on the wafer
Example
use stm32wlxx_hal::info::Uid;
let coord: u32 = Uid::from_device().coord();
Trait Implementations§
impl Copy for Uid
impl Eq for Uid
impl StructuralEq for Uid
impl StructuralPartialEq for Uid
Auto Trait Implementations§
impl RefUnwindSafe for Uid
impl Send for Uid
impl Sync for Uid
impl Unpin for Uid
impl UnwindSafe for Uid
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