Enum stm32wlxx_hal::info::Package
source · #[repr(u8)]pub enum Package {
UFBGA73 = 0,
WLCSP59 = 2,
UFQFPN48 = 10,
}
Expand description
Physical package type.
Variants§
Implementations§
source§impl Package
impl Package
sourcepub fn from_device() -> Result<Self, u8>
pub fn from_device() -> Result<Self, u8>
Get the package type from device memory.
If the value is reserved it will be returned in the Err
variant of the
Result
.
Example
use stm32wlxx_hal::info;
let package: Result<info::Package, u8> = info::Package::from_device();
// valid for the NUCLEO-WL55JC2 dev board
assert_eq!(package, Ok(info::Package::UFBGA73));
Trait Implementations§
source§impl PartialEq for Package
impl PartialEq for Package
impl Copy for Package
impl Eq for Package
impl StructuralEq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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