pub struct LP_GPIO { /* private fields */ }
Expand description
Low-power General Purpose Input/Output
Implementations§
Source§impl LP_GPIO
impl LP_GPIO
Sourcepub const PTR: *const RegisterBlock = {0x5012a000 as *const lp_gpio::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x5012a000 as *const lp_gpio::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 enable_w1ts(&self) -> &ENABLE_W1TS
pub fn enable_w1ts(&self) -> &ENABLE_W1TS
0x18 - Reserved
Sourcepub fn enable_w1tc(&self) -> &ENABLE_W1TC
pub fn enable_w1tc(&self) -> &ENABLE_W1TC
0x1c - Reserved
Sourcepub fn status_w1ts(&self) -> &STATUS_W1TS
pub fn status_w1ts(&self) -> &STATUS_W1TS
0x24 - Reserved
Sourcepub fn status_w1tc(&self) -> &STATUS_W1TC
pub fn status_w1tc(&self) -> &STATUS_W1TC
0x28 - Reserved
Sourcepub fn status_next(&self) -> &STATUS_NEXT
pub fn status_next(&self) -> &STATUS_NEXT
0x2c - Reserved
Sourcepub fn func0_in_sel_cfg(&self) -> &FUNC0_IN_SEL_CFG
pub fn func0_in_sel_cfg(&self) -> &FUNC0_IN_SEL_CFG
0x74 - Reserved
Sourcepub fn func1_in_sel_cfg(&self) -> &FUNC1_IN_SEL_CFG
pub fn func1_in_sel_cfg(&self) -> &FUNC1_IN_SEL_CFG
0x78 - Reserved
Sourcepub fn func2_in_sel_cfg(&self) -> &FUNC2_IN_SEL_CFG
pub fn func2_in_sel_cfg(&self) -> &FUNC2_IN_SEL_CFG
0x7c - Reserved
Sourcepub fn func3_in_sel_cfg(&self) -> &FUNC3_IN_SEL_CFG
pub fn func3_in_sel_cfg(&self) -> &FUNC3_IN_SEL_CFG
0x80 - Reserved
Sourcepub fn func4_in_sel_cfg(&self) -> &FUNC4_IN_SEL_CFG
pub fn func4_in_sel_cfg(&self) -> &FUNC4_IN_SEL_CFG
0x84 - Reserved
Sourcepub fn func5_in_sel_cfg(&self) -> &FUNC5_IN_SEL_CFG
pub fn func5_in_sel_cfg(&self) -> &FUNC5_IN_SEL_CFG
0x88 - Reserved
Sourcepub fn func6_in_sel_cfg(&self) -> &FUNC6_IN_SEL_CFG
pub fn func6_in_sel_cfg(&self) -> &FUNC6_IN_SEL_CFG
0x8c - Reserved
Sourcepub fn func7_in_sel_cfg(&self) -> &FUNC7_IN_SEL_CFG
pub fn func7_in_sel_cfg(&self) -> &FUNC7_IN_SEL_CFG
0x90 - Reserved
Sourcepub fn func8_in_sel_cfg(&self) -> &FUNC8_IN_SEL_CFG
pub fn func8_in_sel_cfg(&self) -> &FUNC8_IN_SEL_CFG
0x94 - Reserved
Sourcepub fn func9_in_sel_cfg(&self) -> &FUNC9_IN_SEL_CFG
pub fn func9_in_sel_cfg(&self) -> &FUNC9_IN_SEL_CFG
0x98 - Reserved
Sourcepub fn func10_in_sel_cfg(&self) -> &FUNC10_IN_SEL_CFG
pub fn func10_in_sel_cfg(&self) -> &FUNC10_IN_SEL_CFG
0x9c - Reserved
Sourcepub fn func11_in_sel_cfg(&self) -> &FUNC11_IN_SEL_CFG
pub fn func11_in_sel_cfg(&self) -> &FUNC11_IN_SEL_CFG
0xa0 - Reserved
Sourcepub fn func12_in_sel_cfg(&self) -> &FUNC12_IN_SEL_CFG
pub fn func12_in_sel_cfg(&self) -> &FUNC12_IN_SEL_CFG
0xa4 - Reserved
Sourcepub fn func13_in_sel_cfg(&self) -> &FUNC13_IN_SEL_CFG
pub fn func13_in_sel_cfg(&self) -> &FUNC13_IN_SEL_CFG
0xa8 - Reserved
Sourcepub fn func0_out_sel_cfg(&self) -> &FUNC0_OUT_SEL_CFG
pub fn func0_out_sel_cfg(&self) -> &FUNC0_OUT_SEL_CFG
0xf4 - Reserved
Sourcepub fn func1_out_sel_cfg(&self) -> &FUNC1_OUT_SEL_CFG
pub fn func1_out_sel_cfg(&self) -> &FUNC1_OUT_SEL_CFG
0xf8 - Reserved
Sourcepub fn func2_out_sel_cfg(&self) -> &FUNC2_OUT_SEL_CFG
pub fn func2_out_sel_cfg(&self) -> &FUNC2_OUT_SEL_CFG
0xfc - Reserved
Sourcepub fn func3_out_sel_cfg(&self) -> &FUNC3_OUT_SEL_CFG
pub fn func3_out_sel_cfg(&self) -> &FUNC3_OUT_SEL_CFG
0x100 - Reserved
Sourcepub fn func4_out_sel_cfg(&self) -> &FUNC4_OUT_SEL_CFG
pub fn func4_out_sel_cfg(&self) -> &FUNC4_OUT_SEL_CFG
0x104 - Reserved
Sourcepub fn func5_out_sel_cfg(&self) -> &FUNC5_OUT_SEL_CFG
pub fn func5_out_sel_cfg(&self) -> &FUNC5_OUT_SEL_CFG
0x108 - Reserved
Sourcepub fn func6_out_sel_cfg(&self) -> &FUNC6_OUT_SEL_CFG
pub fn func6_out_sel_cfg(&self) -> &FUNC6_OUT_SEL_CFG
0x10c - Reserved
Sourcepub fn func7_out_sel_cfg(&self) -> &FUNC7_OUT_SEL_CFG
pub fn func7_out_sel_cfg(&self) -> &FUNC7_OUT_SEL_CFG
0x110 - Reserved
Sourcepub fn func8_out_sel_cfg(&self) -> &FUNC8_OUT_SEL_CFG
pub fn func8_out_sel_cfg(&self) -> &FUNC8_OUT_SEL_CFG
0x114 - Reserved
Sourcepub fn func9_out_sel_cfg(&self) -> &FUNC9_OUT_SEL_CFG
pub fn func9_out_sel_cfg(&self) -> &FUNC9_OUT_SEL_CFG
0x118 - Reserved
Sourcepub fn func10_out_sel_cfg(&self) -> &FUNC10_OUT_SEL_CFG
pub fn func10_out_sel_cfg(&self) -> &FUNC10_OUT_SEL_CFG
0x11c - Reserved
Sourcepub fn func11_out_sel_cfg(&self) -> &FUNC11_OUT_SEL_CFG
pub fn func11_out_sel_cfg(&self) -> &FUNC11_OUT_SEL_CFG
0x120 - Reserved
Sourcepub fn func12_out_sel_cfg(&self) -> &FUNC12_OUT_SEL_CFG
pub fn func12_out_sel_cfg(&self) -> &FUNC12_OUT_SEL_CFG
0x124 - Reserved
Sourcepub fn func13_out_sel_cfg(&self) -> &FUNC13_OUT_SEL_CFG
pub fn func13_out_sel_cfg(&self) -> &FUNC13_OUT_SEL_CFG
0x128 - Reserved
Sourcepub fn func14_out_sel_cfg(&self) -> &FUNC14_OUT_SEL_CFG
pub fn func14_out_sel_cfg(&self) -> &FUNC14_OUT_SEL_CFG
0x12c - Reserved
Sourcepub fn func15_out_sel_cfg(&self) -> &FUNC15_OUT_SEL_CFG
pub fn func15_out_sel_cfg(&self) -> &FUNC15_OUT_SEL_CFG
0x130 - Reserved