#[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 sysldo_vdd_ds(&self) -> LpCfgSysldoVddDs
pub const fn sysldo_vdd_ds(&self) -> LpCfgSysldoVddDs
LDO_SYS VDD Drive Strength
Sourcepub const fn set_sysldo_vdd_ds(&mut self, val: LpCfgSysldoVddDs)
pub const fn set_sysldo_vdd_ds(&mut self, val: LpCfgSysldoVddDs)
LDO_SYS VDD Drive Strength
Sourcepub const fn dcdc_vdd_ds(&self) -> LpCfgDcdcVddDs
pub const fn dcdc_vdd_ds(&self) -> LpCfgDcdcVddDs
DCDC VDD Drive Strength
Sourcepub const fn set_dcdc_vdd_ds(&mut self, val: LpCfgDcdcVddDs)
pub const fn set_dcdc_vdd_ds(&mut self, val: LpCfgDcdcVddDs)
DCDC VDD Drive Strength
Sourcepub const fn dcdc_vdd_lvl(&self) -> LpCfgDcdcVddLvl
pub const fn dcdc_vdd_lvl(&self) -> LpCfgDcdcVddLvl
DCDC VDD Regulator Voltage Level
Sourcepub const fn set_dcdc_vdd_lvl(&mut self, val: LpCfgDcdcVddLvl)
pub const fn set_dcdc_vdd_lvl(&mut self, val: LpCfgDcdcVddLvl)
DCDC VDD Regulator Voltage Level
Sourcepub const fn glitch_detect_disable(&self) -> LpCfgGlitchDetectDisable
pub const fn glitch_detect_disable(&self) -> LpCfgGlitchDetectDisable
Glitch Detect Disable
Sourcepub const fn set_glitch_detect_disable(&mut self, val: LpCfgGlitchDetectDisable)
pub const fn set_glitch_detect_disable(&mut self, val: LpCfgGlitchDetectDisable)
Glitch Detect Disable
Sourcepub const fn corevdd_ivs_en(&self) -> bool
pub const fn corevdd_ivs_en(&self) -> bool
CORE VDD Internal Voltage Scaling (IVS) Enable
Sourcepub const fn set_corevdd_ivs_en(&mut self, val: bool)
pub const fn set_corevdd_ivs_en(&mut self, val: bool)
CORE VDD Internal Voltage Scaling (IVS) Enable
Sourcepub const fn set_lpbuff_en(&mut self, val: bool)
pub const fn set_lpbuff_en(&mut self, val: bool)
CMP Bandgap Buffer 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_io_lvde(&mut self, val: bool)
pub const fn set_io_lvde(&mut self, val: bool)
IO Low Voltage Detect Enable
Sourcepub const fn set_core_hvde(&mut self, val: bool)
pub const fn set_core_hvde(&mut self, val: bool)
Core High 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
Sourcepub const fn set_io_hvde(&mut self, val: bool)
pub const fn set_io_hvde(&mut self, val: bool)
IO 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