Struct ht32f523x2::Pwrcu
source · pub struct Pwrcu { /* private fields */ }
Expand description
PWRCU
Implementations§
source§impl Pwrcu
impl Pwrcu
sourcepub const PTR: *const RegisterBlock = {0x4006a100 as *const pwrcu::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4006a100 as *const pwrcu::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 pwrcu_baksr(&self) -> &PwrcuBaksr
pub fn pwrcu_baksr(&self) -> &PwrcuBaksr
0x00 - PWRCU_BAKSR
sourcepub fn pwrcu_bakcr(&self) -> &PwrcuBakcr
pub fn pwrcu_bakcr(&self) -> &PwrcuBakcr
0x04 - PWRCU_BAKCR
sourcepub fn pwrcu_baktest(&self) -> &PwrcuBaktest
pub fn pwrcu_baktest(&self) -> &PwrcuBaktest
0x08 - PWRCU_BAKTEST
sourcepub fn pwrcu_lvdcsr(&self) -> &PwrcuLvdcsr
pub fn pwrcu_lvdcsr(&self) -> &PwrcuLvdcsr
0x10 - PWRCU_LVDCSR
sourcepub fn pwrcu_bakreg0(&self) -> &PwrcuBakreg0
pub fn pwrcu_bakreg0(&self) -> &PwrcuBakreg0
0x100 - PWRCU_BAKREG0
sourcepub fn pwrcu_bakreg1(&self) -> &PwrcuBakreg1
pub fn pwrcu_bakreg1(&self) -> &PwrcuBakreg1
0x104 - PWRCU_BAKREG1
sourcepub fn pwrcu_bakreg2(&self) -> &PwrcuBakreg2
pub fn pwrcu_bakreg2(&self) -> &PwrcuBakreg2
0x108 - PWRCU_BAKREG2
sourcepub fn pwrcu_bakreg3(&self) -> &PwrcuBakreg3
pub fn pwrcu_bakreg3(&self) -> &PwrcuBakreg3
0x10c - PWRCU_BAKREG3
sourcepub fn pwrcu_bakreg4(&self) -> &PwrcuBakreg4
pub fn pwrcu_bakreg4(&self) -> &PwrcuBakreg4
0x110 - PWRCU_BAKREG4
sourcepub fn pwrcu_bakreg5(&self) -> &PwrcuBakreg5
pub fn pwrcu_bakreg5(&self) -> &PwrcuBakreg5
0x114 - PWRCU_BAKREG5
sourcepub fn pwrcu_bakreg6(&self) -> &PwrcuBakreg6
pub fn pwrcu_bakreg6(&self) -> &PwrcuBakreg6
0x118 - PWRCU_BAKREG6
sourcepub fn pwrcu_bakreg7(&self) -> &PwrcuBakreg7
pub fn pwrcu_bakreg7(&self) -> &PwrcuBakreg7
0x11c - PWRCU_BAKREG7
sourcepub fn pwrcu_bakreg8(&self) -> &PwrcuBakreg8
pub fn pwrcu_bakreg8(&self) -> &PwrcuBakreg8
0x120 - PWRCU_BAKREG8
sourcepub fn pwrcu_bakreg9(&self) -> &PwrcuBakreg9
pub fn pwrcu_bakreg9(&self) -> &PwrcuBakreg9
0x124 - PWRCU_BAKREG9