Struct LP_IO

Source
pub struct LP_IO { /* private fields */ }

Implementations§

Source§

impl LP_IO

Source

pub const PTR: *const <LP_IO as Deref>::Target = {0x600b2000 as *const <esp32c6::LP_IO as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> LP_IO

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

Source

pub const fn ptr() -> *const <LP_IO as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn out_data(&self) -> &Reg<OUT_DATA_SPEC>

0x00 - need des

Source

pub fn out_data_w1ts(&self) -> &Reg<OUT_DATA_W1TS_SPEC>

0x04 - need des

Source

pub fn out_data_w1tc(&self) -> &Reg<OUT_DATA_W1TC_SPEC>

0x08 - need des

Source

pub fn out_enable(&self) -> &Reg<OUT_ENABLE_SPEC>

0x0c - need des

Source

pub fn out_enable_w1ts(&self) -> &Reg<OUT_ENABLE_W1TS_SPEC>

0x10 - need des

Source

pub fn out_enable_w1tc(&self) -> &Reg<OUT_ENABLE_W1TC_SPEC>

0x14 - need des

Source

pub fn status(&self) -> &Reg<STATUS_SPEC>

0x18 - need des

Source

pub fn status_w1ts(&self) -> &Reg<STATUS_W1TS_SPEC>

0x1c - need des

Source

pub fn status_w1tc(&self) -> &Reg<STATUS_W1TC_SPEC>

0x20 - need des

Source

pub fn in_(&self) -> &Reg<IN_SPEC>

0x24 - need des

Source

pub fn pin0(&self) -> &Reg<PIN0_SPEC>

0x28 - need des

Source

pub fn pin1(&self) -> &Reg<PIN1_SPEC>

0x2c - need des

Source

pub fn pin2(&self) -> &Reg<PIN2_SPEC>

0x30 - need des

Source

pub fn pin3(&self) -> &Reg<PIN3_SPEC>

0x34 - need des

Source

pub fn pin4(&self) -> &Reg<PIN4_SPEC>

0x38 - need des

Source

pub fn pin5(&self) -> &Reg<PIN5_SPEC>

0x3c - need des

Source

pub fn pin6(&self) -> &Reg<PIN6_SPEC>

0x40 - need des

Source

pub fn pin7(&self) -> &Reg<PIN7_SPEC>

0x44 - need des

Source

pub fn gpio0(&self) -> &Reg<GPIO0_SPEC>

0x48 - need des

Source

pub fn gpio1(&self) -> &Reg<GPIO1_SPEC>

0x4c - need des

Source

pub fn gpio2(&self) -> &Reg<GPIO2_SPEC>

0x50 - need des

Source

pub fn gpio3(&self) -> &Reg<GPIO3_SPEC>

0x54 - need des

Source

pub fn gpio4(&self) -> &Reg<GPIO4_SPEC>

0x58 - need des

Source

pub fn gpio5(&self) -> &Reg<GPIO5_SPEC>

0x5c - need des

Source

pub fn gpio6(&self) -> &Reg<GPIO6_SPEC>

0x60 - need des

Source

pub fn gpio7(&self) -> &Reg<GPIO7_SPEC>

0x64 - need des

Source

pub fn status_interrupt(&self) -> &Reg<STATUS_INTERRUPT_SPEC>

0x68 - need des

Source

pub fn debug_sel0(&self) -> &Reg<DEBUG_SEL0_SPEC>

0x6c - need des

Source

pub fn debug_sel1(&self) -> &Reg<DEBUG_SEL1_SPEC>

0x70 - need des

Source

pub fn lpi2c(&self) -> &Reg<LPI2C_SPEC>

0x74 - need des

Source

pub fn date(&self) -> &Reg<DATE_SPEC>

0x3fc - need des

Trait Implementations§

Source§

impl Debug for LP_IO

Source§

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

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

impl Deref for LP_IO

Source§

type Target = <LP_IO as Deref>::Target

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<LP_IO as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for LP_IO

Source§

fn deref_mut(&mut self) -> &mut <LP_IO as Deref>::Target

Mutably dereferences the value.
Source§

impl Peripheral for LP_IO

Source§

type P = LP_IO

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <LP_IO as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
Source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl Freeze for LP_IO

§

impl RefUnwindSafe for LP_IO

§

impl Send for LP_IO

§

impl Sync for LP_IO

§

impl Unpin for LP_IO

§

impl UnwindSafe for LP_IO

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.