#[repr(transparent)]pub struct HpCfg(pub u32);Expand description
High Power Mode Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl HpCfg
impl HpCfg
Sourcepub const fn coreldo_vdd_ds(&self) -> HpCfgCoreldoVddDs
pub const fn coreldo_vdd_ds(&self) -> HpCfgCoreldoVddDs
LDO_CORE VDD Drive Strength.
Sourcepub const fn set_coreldo_vdd_ds(&mut self, val: HpCfgCoreldoVddDs)
pub const fn set_coreldo_vdd_ds(&mut self, val: HpCfgCoreldoVddDs)
LDO_CORE VDD Drive Strength.
Sourcepub const fn coreldo_vdd_lvl(&self) -> HpCfgCoreldoVddLvl
pub const fn coreldo_vdd_lvl(&self) -> HpCfgCoreldoVddLvl
LDO_CORE VDD Regulator Voltage Level.
Sourcepub const fn set_coreldo_vdd_lvl(&mut self, val: HpCfgCoreldoVddLvl)
pub const fn set_coreldo_vdd_lvl(&mut self, val: HpCfgCoreldoVddLvl)
LDO_CORE VDD Regulator Voltage Level.
Sourcepub const fn glitch_detect_disable(&self) -> bool
pub const fn glitch_detect_disable(&self) -> bool
VDD Core Glitch Detect Disable.
Sourcepub const fn set_glitch_detect_disable(&mut self, val: bool)
pub const fn set_glitch_detect_disable(&mut self, val: bool)
VDD Core Glitch Detect Disable.
Sourcepub const fn bgmode(&self) -> HpCfgBgmode
pub const fn bgmode(&self) -> HpCfgBgmode
Bandgap Mode.
Sourcepub const fn set_bgmode(&mut self, val: HpCfgBgmode)
pub const fn set_bgmode(&mut self, val: HpCfgBgmode)
Bandgap Mode.
Sourcepub const fn set_core_lvde(&mut self, val: bool)
pub const fn set_core_lvde(&mut self, val: bool)
Core Low-Voltage Detection Enable.
Sourcepub const fn set_sys_lvde(&mut self, val: bool)
pub const fn set_sys_lvde(&mut self, val: bool)
System Low-Voltage Detection Enable.
Sourcepub const fn set_sys_hvde(&mut self, val: bool)
pub const fn set_sys_hvde(&mut self, val: bool)
System High-Voltage Detection Enable.
Trait Implementations§
impl Copy for HpCfg
impl Eq for HpCfg
impl StructuralPartialEq for HpCfg
Auto Trait Implementations§
impl Freeze for HpCfg
impl RefUnwindSafe for HpCfg
impl Send for HpCfg
impl Sync for HpCfg
impl Unpin for HpCfg
impl UnwindSafe for HpCfg
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