pub struct SEC_LPTIM2 { /* private fields */ }Expand description
Low power timer
Implementations§
Source§impl SEC_LPTIM2
impl SEC_LPTIM2
Sourcepub const PTR: *const RegisterBlock = {0x50009400 as *const stm32h573::lptim1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50009400 as *const stm32h573::lptim1::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 isr_intput(&self) -> &ISR_INTPUT
pub fn isr_intput(&self) -> &ISR_INTPUT
0x00 - LPTIM interrupt and status register
Sourcepub fn isr_output(&self) -> &ISR_OUTPUT
pub fn isr_output(&self) -> &ISR_OUTPUT
0x00 - LPTIM interrupt and status register
Sourcepub fn icr_intput(&self) -> &ICR_INTPUT
pub fn icr_intput(&self) -> &ICR_INTPUT
0x04 - LPTIM interrupt clear register
Sourcepub fn icr_output(&self) -> &ICR_OUTPUT
pub fn icr_output(&self) -> &ICR_OUTPUT
0x04 - LPTIM interrupt clear register
Sourcepub fn dier_intput(&self) -> &DIER_INTPUT
pub fn dier_intput(&self) -> &DIER_INTPUT
0x08 - LPTIM interrupt enable register
Sourcepub fn dier_output(&self) -> &DIER_OUTPUT
pub fn dier_output(&self) -> &DIER_OUTPUT
0x08 - LPTIM interrupt enable register