Struct LP_GPIO

Source
pub struct LP_GPIO { /* private fields */ }
Expand description

Low-power General Purpose Input/Output

Implementations§

Source§

impl LP_GPIO

Source

pub const PTR: *const RegisterBlock = {0x5012a000 as *const lp_gpio::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

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>§

Source

pub fn clk_en(&self) -> &CLK_EN

0x00 - Reserved

Source

pub fn ver_date(&self) -> &VER_DATE

0x04 - Reserved

Source

pub fn out(&self) -> &OUT

0x08 - Reserved

Source

pub fn out_w1ts(&self) -> &OUT_W1TS

0x0c - Reserved

Source

pub fn out_w1tc(&self) -> &OUT_W1TC

0x10 - Reserved

Source

pub fn enable(&self) -> &ENABLE

0x14 - Reserved

Source

pub fn enable_w1ts(&self) -> &ENABLE_W1TS

0x18 - Reserved

Source

pub fn enable_w1tc(&self) -> &ENABLE_W1TC

0x1c - Reserved

Source

pub fn status(&self) -> &STATUS

0x20 - Reserved

Source

pub fn status_w1ts(&self) -> &STATUS_W1TS

0x24 - Reserved

Source

pub fn status_w1tc(&self) -> &STATUS_W1TC

0x28 - Reserved

Source

pub fn status_next(&self) -> &STATUS_NEXT

0x2c - Reserved

Source

pub fn in_(&self) -> &IN

0x30 - Reserved

Source

pub fn pin0(&self) -> &PIN0

0x34 - Reserved

Source

pub fn pin1(&self) -> &PIN1

0x38 - Reserved

Source

pub fn pin2(&self) -> &PIN2

0x3c - Reserved

Source

pub fn pin3(&self) -> &PIN3

0x40 - Reserved

Source

pub fn pin4(&self) -> &PIN4

0x44 - Reserved

Source

pub fn pin5(&self) -> &PIN5

0x48 - Reserved

Source

pub fn pin6(&self) -> &PIN6

0x4c - Reserved

Source

pub fn pin7(&self) -> &PIN7

0x50 - Reserved

Source

pub fn pin8(&self) -> &PIN8

0x54 - Reserved

Source

pub fn pin9(&self) -> &PIN9

0x58 - Reserved

Source

pub fn pin10(&self) -> &PIN10

0x5c - Reserved

Source

pub fn pin11(&self) -> &PIN11

0x60 - Reserved

Source

pub fn pin12(&self) -> &PIN12

0x64 - Reserved

Source

pub fn pin13(&self) -> &PIN13

0x68 - Reserved

Source

pub fn pin14(&self) -> &PIN14

0x6c - Reserved

Source

pub fn pin15(&self) -> &PIN15

0x70 - Reserved

Source

pub fn func0_in_sel_cfg(&self) -> &FUNC0_IN_SEL_CFG

0x74 - Reserved

Source

pub fn func1_in_sel_cfg(&self) -> &FUNC1_IN_SEL_CFG

0x78 - Reserved

Source

pub fn func2_in_sel_cfg(&self) -> &FUNC2_IN_SEL_CFG

0x7c - Reserved

Source

pub fn func3_in_sel_cfg(&self) -> &FUNC3_IN_SEL_CFG

0x80 - Reserved

Source

pub fn func4_in_sel_cfg(&self) -> &FUNC4_IN_SEL_CFG

0x84 - Reserved

Source

pub fn func5_in_sel_cfg(&self) -> &FUNC5_IN_SEL_CFG

0x88 - Reserved

Source

pub fn func6_in_sel_cfg(&self) -> &FUNC6_IN_SEL_CFG

0x8c - Reserved

Source

pub fn func7_in_sel_cfg(&self) -> &FUNC7_IN_SEL_CFG

0x90 - Reserved

Source

pub fn func8_in_sel_cfg(&self) -> &FUNC8_IN_SEL_CFG

0x94 - Reserved

Source

pub fn func9_in_sel_cfg(&self) -> &FUNC9_IN_SEL_CFG

0x98 - Reserved

Source

pub fn func10_in_sel_cfg(&self) -> &FUNC10_IN_SEL_CFG

0x9c - Reserved

Source

pub fn func11_in_sel_cfg(&self) -> &FUNC11_IN_SEL_CFG

0xa0 - Reserved

Source

pub fn func12_in_sel_cfg(&self) -> &FUNC12_IN_SEL_CFG

0xa4 - Reserved

Source

pub fn func13_in_sel_cfg(&self) -> &FUNC13_IN_SEL_CFG

0xa8 - Reserved

Source

pub fn func0_out_sel_cfg(&self) -> &FUNC0_OUT_SEL_CFG

0xf4 - Reserved

Source

pub fn func1_out_sel_cfg(&self) -> &FUNC1_OUT_SEL_CFG

0xf8 - Reserved

Source

pub fn func2_out_sel_cfg(&self) -> &FUNC2_OUT_SEL_CFG

0xfc - Reserved

Source

pub fn func3_out_sel_cfg(&self) -> &FUNC3_OUT_SEL_CFG

0x100 - Reserved

Source

pub fn func4_out_sel_cfg(&self) -> &FUNC4_OUT_SEL_CFG

0x104 - Reserved

Source

pub fn func5_out_sel_cfg(&self) -> &FUNC5_OUT_SEL_CFG

0x108 - Reserved

Source

pub fn func6_out_sel_cfg(&self) -> &FUNC6_OUT_SEL_CFG

0x10c - Reserved

Source

pub fn func7_out_sel_cfg(&self) -> &FUNC7_OUT_SEL_CFG

0x110 - Reserved

Source

pub fn func8_out_sel_cfg(&self) -> &FUNC8_OUT_SEL_CFG

0x114 - Reserved

Source

pub fn func9_out_sel_cfg(&self) -> &FUNC9_OUT_SEL_CFG

0x118 - Reserved

Source

pub fn func10_out_sel_cfg(&self) -> &FUNC10_OUT_SEL_CFG

0x11c - Reserved

Source

pub fn func11_out_sel_cfg(&self) -> &FUNC11_OUT_SEL_CFG

0x120 - Reserved

Source

pub fn func12_out_sel_cfg(&self) -> &FUNC12_OUT_SEL_CFG

0x124 - Reserved

Source

pub fn func13_out_sel_cfg(&self) -> &FUNC13_OUT_SEL_CFG

0x128 - Reserved

Source

pub fn func14_out_sel_cfg(&self) -> &FUNC14_OUT_SEL_CFG

0x12c - Reserved

Source

pub fn func15_out_sel_cfg(&self) -> &FUNC15_OUT_SEL_CFG

0x130 - Reserved

Trait Implementations§

Source§

impl Debug for LP_GPIO

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for LP_GPIO

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for LP_GPIO

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.