#[repr(transparent)]pub struct DeviceType(pub u32);Expand description
no description available
Tuple Fields§
§0: u32Implementations§
Source§impl DeviceType
impl DeviceType
Sourcepub const fn device_type_num(&self) -> u16
pub const fn device_type_num(&self) -> u16
Device type number. (E.g : LPC5569 stored as 5569 decimal)
Sourcepub const fn set_device_type_num(&mut self, val: u16)
pub const fn set_device_type_num(&mut self, val: u16)
Device type number. (E.g : LPC5569 stored as 5569 decimal)
Sourcepub const fn device_type_sec(&self) -> bool
pub const fn device_type_sec(&self) -> bool
Security device type: 0: LPC55xxx (Non Secure Familly) 1: LPC55Sxxx (Secure Familly)
Sourcepub const fn set_device_type_sec(&mut self, val: bool)
pub const fn set_device_type_sec(&mut self, val: bool)
Security device type: 0: LPC55xxx (Non Secure Familly) 1: LPC55Sxxx (Secure Familly)
Sourcepub const fn device_type_pkg(&self) -> u8
pub const fn device_type_pkg(&self) -> u8
Device package type: 0000 : HLQFP 0001 : HTQFP 0010 : HVQFN 0100 : VFBGA 1000 : WLCSP
Sourcepub const fn set_device_type_pkg(&mut self, val: u8)
pub const fn set_device_type_pkg(&mut self, val: u8)
Device package type: 0000 : HLQFP 0001 : HTQFP 0010 : HVQFN 0100 : VFBGA 1000 : WLCSP
Sourcepub const fn device_type_pin(&self) -> u8
pub const fn device_type_pin(&self) -> u8
Number of pins on the package.
Sourcepub const fn set_device_type_pin(&mut self, val: u8)
pub const fn set_device_type_pin(&mut self, val: u8)
Number of pins on the package.
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceType
impl Debug for DeviceType
Source§impl Default for DeviceType
impl Default for DeviceType
Source§fn default() -> DeviceType
fn default() -> DeviceType
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
impl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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