Struct mcxn947_pac::PLU0
source · pub struct PLU0 { /* private fields */ }
Expand description
Programmable Logic Unit (PLU)
Implementations§
source§impl PLU0
impl PLU0
sourcepub const PTR: *const RegisterBlock = {0x40034000 as *const plu0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40034000 as *const plu0::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 lut_iter(&self) -> impl Iterator<Item = &LUT>
pub fn lut_iter(&self) -> impl Iterator<Item = &LUT>
Iterator for array of: 0x00..0x208 - no description available
sourcepub fn lut_truth_iter(&self) -> impl Iterator<Item = &LUT_TRUTH>
pub fn lut_truth_iter(&self) -> impl Iterator<Item = &LUT_TRUTH>
Iterator for array of: 0x800..0x868 - PLU LUT truth table
sourcepub fn wakeint_ctrl(&self) -> &WAKEINT_CTRL
pub fn wakeint_ctrl(&self) -> &WAKEINT_CTRL
0x904 - Wakeup interrupt control
sourcepub fn output_mux(&self, n: usize) -> &OUTPUT_MUX
pub fn output_mux(&self, n: usize) -> &OUTPUT_MUX
0xc00..0xc20 - PLU output multiplexer
sourcepub fn output_mux_iter(&self) -> impl Iterator<Item = &OUTPUT_MUX>
pub fn output_mux_iter(&self) -> impl Iterator<Item = &OUTPUT_MUX>
Iterator for array of: 0xc00..0xc20 - PLU output multiplexer