pub struct HpsysCfg { /* private fields */ }Expand description
HPSYS_CFG
Implementations§
Source§impl HpsysCfg
impl HpsysCfg
Sourcepub const PTR: *const RegisterBlock = {0x5000b000 as *const hpsys_cfg::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x5000b000 as *const hpsys_cfg::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 usart1_pinr(&self) -> &Usart1Pinr
pub fn usart1_pinr(&self) -> &Usart1Pinr
0x58 - USART1 Pin Register
Sourcepub fn usart2_pinr(&self) -> &Usart2Pinr
pub fn usart2_pinr(&self) -> &Usart2Pinr
0x5c - USART2 Pin Register
Sourcepub fn usart3_pinr(&self) -> &Usart3Pinr
pub fn usart3_pinr(&self) -> &Usart3Pinr
0x60 - USART3 Pin Register
Sourcepub fn gptim1_pinr(&self) -> &Gptim1Pinr
pub fn gptim1_pinr(&self) -> &Gptim1Pinr
0x64 - GPTIM1 Pin Register
Sourcepub fn gptim2_pinr(&self) -> &Gptim2Pinr
pub fn gptim2_pinr(&self) -> &Gptim2Pinr
0x68 - GPTIM2 Pin Register
Sourcepub fn lptim1_pinr(&self) -> &Lptim1Pinr
pub fn lptim1_pinr(&self) -> &Lptim1Pinr
0x70 - LPTIM1 Pin Register
Sourcepub fn lptim2_pinr(&self) -> &Lptim2Pinr
pub fn lptim2_pinr(&self) -> &Lptim2Pinr
0x74 - LPTIM2 Pin Register
Sourcepub fn atim1_pinr1(&self) -> &Atim1Pinr1
pub fn atim1_pinr1(&self) -> &Atim1Pinr1
0x78 - ATIM1 Pin Register 1
Sourcepub fn atim1_pinr2(&self) -> &Atim1Pinr2
pub fn atim1_pinr2(&self) -> &Atim1Pinr2
0x7c - ATIM1 Pin Register 2
Sourcepub fn atim1_pinr3(&self) -> &Atim1Pinr3
pub fn atim1_pinr3(&self) -> &Atim1Pinr3
0x80 - ATIM1 Pin Register 3