Struct mcxn947_pac::SCT0
source · pub struct SCT0 { /* private fields */ }
Expand description
SCT
Implementations§
source§impl SCT0
impl SCT0
sourcepub const PTR: *const RegisterBlock = {0x40091000 as *const sct0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40091000 as *const sct0::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 outputdirctrl(&self) -> &OUTPUTDIRCTRL
pub fn outputdirctrl(&self) -> &OUTPUTDIRCTRL
0x54 - Output Counter Direction Control
sourcepub fn cap_match_match(&self, n: usize) -> &CAP_MATCH_MATCH
pub fn cap_match_match(&self, n: usize) -> &CAP_MATCH_MATCH
0x100..0x140 - Match Value
sourcepub fn cap_match_match_iter(&self) -> impl Iterator<Item = &CAP_MATCH_MATCH>
pub fn cap_match_match_iter(&self) -> impl Iterator<Item = &CAP_MATCH_MATCH>
Iterator for array of: 0x100..0x140 - Match Value
sourcepub fn cap_match_cap(&self, n: usize) -> &CAP_MATCH_CAP
pub fn cap_match_cap(&self, n: usize) -> &CAP_MATCH_CAP
0x100..0x140 - Capture Value
sourcepub fn cap_match_cap_iter(&self) -> impl Iterator<Item = &CAP_MATCH_CAP>
pub fn cap_match_cap_iter(&self) -> impl Iterator<Item = &CAP_MATCH_CAP>
Iterator for array of: 0x100..0x140 - Capture Value
sourcepub fn fracmat_iter(&self) -> impl Iterator<Item = &FRACMAT>
pub fn fracmat_iter(&self) -> impl Iterator<Item = &FRACMAT>
Iterator for array of: 0x140..0x158 - Fractional Match
sourcepub fn capctrl_matchrel_matchrel(&self, n: usize) -> &CAPCTRL_MATCHREL_MATCHREL
pub fn capctrl_matchrel_matchrel(&self, n: usize) -> &CAPCTRL_MATCHREL_MATCHREL
0x200..0x240 - Match Reload Value
sourcepub fn capctrl_matchrel_matchrel_iter(
&self
) -> impl Iterator<Item = &CAPCTRL_MATCHREL_MATCHREL>
pub fn capctrl_matchrel_matchrel_iter( &self ) -> impl Iterator<Item = &CAPCTRL_MATCHREL_MATCHREL>
Iterator for array of: 0x200..0x240 - Match Reload Value
sourcepub fn capctrl_matchrel_capctrl(&self, n: usize) -> &CAPCTRL_MATCHREL_CAPCTRL
pub fn capctrl_matchrel_capctrl(&self, n: usize) -> &CAPCTRL_MATCHREL_CAPCTRL
0x200..0x240 - Capture Control
sourcepub fn capctrl_matchrel_capctrl_iter(
&self
) -> impl Iterator<Item = &CAPCTRL_MATCHREL_CAPCTRL>
pub fn capctrl_matchrel_capctrl_iter( &self ) -> impl Iterator<Item = &CAPCTRL_MATCHREL_CAPCTRL>
Iterator for array of: 0x200..0x240 - Capture Control
sourcepub fn fracmatrel(&self, n: usize) -> &FRACMATREL
pub fn fracmatrel(&self, n: usize) -> &FRACMATREL
0x240..0x258 - Fractional Match Reload
sourcepub fn fracmatrel_iter(&self) -> impl Iterator<Item = &FRACMATREL>
pub fn fracmatrel_iter(&self) -> impl Iterator<Item = &FRACMATREL>
Iterator for array of: 0x240..0x258 - Fractional Match Reload
sourcepub fn event_iter(&self) -> impl Iterator<Item = &EVENT>
pub fn event_iter(&self) -> impl Iterator<Item = &EVENT>
Iterator for array of: 0x300..0x380 - no description available