Struct hpm5361_pac::PCFG
source · pub struct PCFG { /* private fields */ }
Expand description
PCFG
Implementations§
source§impl PCFG
impl PCFG
sourcepub const PTR: *const RegisterBlock = {0xf4104000 as *const pcfg::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xf4104000 as *const pcfg::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn dcdc_lpmode(&self) -> &DCDC_LPMODE
pub fn dcdc_lpmode(&self) -> &DCDC_LPMODE
0x14 - DCDC low power mode
sourcepub fn dcdc_current(&self) -> &DCDC_CURRENT
pub fn dcdc_current(&self) -> &DCDC_CURRENT
0x1c - DCDC current estimation
sourcepub fn dcdc_advmode(&self) -> &DCDC_ADVMODE
pub fn dcdc_advmode(&self) -> &DCDC_ADVMODE
0x20 - DCDC advance setting
sourcepub fn dcdc_advparam(&self) -> &DCDC_ADVPARAM
pub fn dcdc_advparam(&self) -> &DCDC_ADVPARAM
0x24 - DCDC advance parameter
sourcepub fn dcdc_debug(&self) -> &DCDC_DEBUG
pub fn dcdc_debug(&self) -> &DCDC_DEBUG
0x2c - DCDC Debug
sourcepub fn dcdc_start_time(&self) -> &DCDC_START_TIME
pub fn dcdc_start_time(&self) -> &DCDC_START_TIME
0x30 - DCDC ramp time
sourcepub fn dcdc_resume_time(&self) -> &DCDC_RESUME_TIME
pub fn dcdc_resume_time(&self) -> &DCDC_RESUME_TIME
0x34 - DCDC resume time
sourcepub fn power_trap(&self) -> &POWER_TRAP
pub fn power_trap(&self) -> &POWER_TRAP
0x40 - SOC power trap
sourcepub fn wake_cause(&self) -> &WAKE_CAUSE
pub fn wake_cause(&self) -> &WAKE_CAUSE
0x44 - Wake up source
sourcepub fn rc24m_track(&self) -> &RC24M_TRACK
pub fn rc24m_track(&self) -> &RC24M_TRACK
0x64 - RC 24M track mode
sourcepub fn track_target(&self) -> &TRACK_TARGET
pub fn track_target(&self) -> &TRACK_TARGET
0x68 - RC 24M track target