Struct hpm5361_pac::PWM0
source · pub struct PWM0 { /* private fields */ }
Expand description
PWM0
Implementations§
source§impl PWM0
impl PWM0
sourcepub const PTR: *const RegisterBlock = {0xf0318000 as *const pwm0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xf0318000 as *const pwm0::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 cmp_iter(&self) -> impl Iterator<Item = &CMP>
pub fn cmp_iter(&self) -> impl Iterator<Item = &CMP>
Iterator for array of: 0x0c..0x6c - no description available
sourcepub fn chcfg_iter(&self) -> impl Iterator<Item = &CHCFG>
pub fn chcfg_iter(&self) -> impl Iterator<Item = &CHCFG>
Iterator for array of: 0x80..0xe0 - no description available
sourcepub fn cappos_iter(&self) -> impl Iterator<Item = &CAPPOS>
pub fn cappos_iter(&self) -> impl Iterator<Item = &CAPPOS>
Iterator for array of: 0x100..0x160 - no description available
sourcepub fn capneg_iter(&self) -> impl Iterator<Item = &CAPNEG>
pub fn capneg_iter(&self) -> impl Iterator<Item = &CAPNEG>
Iterator for array of: 0x180..0x1e0 - no description available
sourcepub fn pwmcfg_iter(&self) -> impl Iterator<Item = &PWMCFG>
pub fn pwmcfg_iter(&self) -> impl Iterator<Item = &PWMCFG>
Iterator for array of: 0x200..0x220 - no description available
sourcepub fn cmpcfg_iter(&self) -> impl Iterator<Item = &CMPCFG>
pub fn cmpcfg_iter(&self) -> impl Iterator<Item = &CMPCFG>
Iterator for array of: 0x230..0x290 - no description available
sourcepub fn cmpcfgcmpcfg0(&self) -> &CMPCFG
pub fn cmpcfgcmpcfg0(&self) -> &CMPCFG
0x230 - no description available