#[repr(transparent)]pub struct LpCfg(pub u32);Expand description
Low-Power Mode Configuration
Tuple Fields§
§0: u32Implementations§
Source§impl LpCfg
impl LpCfg
Sourcepub const fn coreldo_vdd_ds(&self) -> LpCfgCoreldoVddDs
pub const fn coreldo_vdd_ds(&self) -> LpCfgCoreldoVddDs
LDO_CORE VDD Drive Strength
Sourcepub const fn set_coreldo_vdd_ds(&mut self, val: LpCfgCoreldoVddDs)
pub const fn set_coreldo_vdd_ds(&mut self, val: LpCfgCoreldoVddDs)
LDO_CORE VDD Drive Strength
Sourcepub const fn coreldo_vdd_lvl(&self) -> LpCfgCoreldoVddLvl
pub const fn coreldo_vdd_lvl(&self) -> LpCfgCoreldoVddLvl
LDO_CORE VDD Regulator Voltage Level
Sourcepub const fn set_coreldo_vdd_lvl(&mut self, val: LpCfgCoreldoVddLvl)
pub const fn set_coreldo_vdd_lvl(&mut self, val: LpCfgCoreldoVddLvl)
LDO_CORE VDD Regulator Voltage Level
Sourcepub const fn sramldo_dpd_on(&self) -> bool
pub const fn sramldo_dpd_on(&self) -> bool
SRAM_LDO Deep Power Low Power IREF Enable
Sourcepub const fn set_sramldo_dpd_on(&mut self, val: bool)
pub const fn set_sramldo_dpd_on(&mut self, val: bool)
SRAM_LDO Deep Power Low Power IREF Enable
Sourcepub const fn bgmode(&self) -> LpCfgBgmode
pub const fn bgmode(&self) -> LpCfgBgmode
Bandgap Mode
Sourcepub const fn set_bgmode(&mut self, val: LpCfgBgmode)
pub const fn set_bgmode(&mut self, val: LpCfgBgmode)
Bandgap Mode
Sourcepub const fn set_lp_irefen(&mut self, val: bool)
pub const fn set_lp_irefen(&mut self, val: bool)
Low-Power IREF Enable
Sourcepub const fn set_core_lvde(&mut self, val: bool)
pub const fn set_core_lvde(&mut self, val: bool)
Core Low Voltage Detect Enable
Sourcepub const fn set_sys_lvde(&mut self, val: bool)
pub const fn set_sys_lvde(&mut self, val: bool)
System Low Voltage Detect Enable
Sourcepub const fn set_sys_hvde(&mut self, val: bool)
pub const fn set_sys_hvde(&mut self, val: bool)
System High Voltage Detect Enable
Trait Implementations§
impl Copy for LpCfg
impl Eq for LpCfg
impl StructuralPartialEq for LpCfg
Auto Trait Implementations§
impl Freeze for LpCfg
impl RefUnwindSafe for LpCfg
impl Send for LpCfg
impl Sync for LpCfg
impl Unpin for LpCfg
impl UnwindSafe for LpCfg
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