Struct esp32c6::LP_IO

source ·
pub struct LP_IO { /* private fields */ }
Expand description

LP_IO Peripheral

Implementations§

source§

impl LP_IO

source

pub const PTR: *const RegisterBlock = {0x600b2000 as *const lp_io::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 out_data(&self) -> &OUT_DATA

0x00 - need des

source

pub fn out_data_w1ts(&self) -> &OUT_DATA_W1TS

0x04 - need des

source

pub fn out_data_w1tc(&self) -> &OUT_DATA_W1TC

0x08 - need des

source

pub fn out_enable(&self) -> &OUT_ENABLE

0x0c - need des

source

pub fn out_enable_w1ts(&self) -> &OUT_ENABLE_W1TS

0x10 - need des

source

pub fn out_enable_w1tc(&self) -> &OUT_ENABLE_W1TC

0x14 - need des

source

pub fn status(&self) -> &STATUS

0x18 - need des

source

pub fn status_w1ts(&self) -> &STATUS_W1TS

0x1c - need des

source

pub fn status_w1tc(&self) -> &STATUS_W1TC

0x20 - need des

source

pub fn in_(&self) -> &IN

0x24 - need des

source

pub fn pin0(&self) -> &PIN0

0x28 - need des

source

pub fn pin1(&self) -> &PIN1

0x2c - need des

source

pub fn pin2(&self) -> &PIN2

0x30 - need des

source

pub fn pin3(&self) -> &PIN3

0x34 - need des

source

pub fn pin4(&self) -> &PIN4

0x38 - need des

source

pub fn pin5(&self) -> &PIN5

0x3c - need des

source

pub fn pin6(&self) -> &PIN6

0x40 - need des

source

pub fn pin7(&self) -> &PIN7

0x44 - need des

source

pub fn gpio0(&self) -> &GPIO0

0x48 - need des

source

pub fn gpio1(&self) -> &GPIO1

0x4c - need des

source

pub fn gpio2(&self) -> &GPIO2

0x50 - need des

source

pub fn gpio3(&self) -> &GPIO3

0x54 - need des

source

pub fn gpio4(&self) -> &GPIO4

0x58 - need des

source

pub fn gpio5(&self) -> &GPIO5

0x5c - need des

source

pub fn gpio6(&self) -> &GPIO6

0x60 - need des

source

pub fn gpio7(&self) -> &GPIO7

0x64 - need des

source

pub fn status_interrupt(&self) -> &STATUS_INTERRUPT

0x68 - need des

source

pub fn debug_sel0(&self) -> &DEBUG_SEL0

0x6c - need des

source

pub fn debug_sel1(&self) -> &DEBUG_SEL1

0x70 - need des

source

pub fn lpi2c(&self) -> &LPI2C

0x74 - need des

source

pub fn date(&self) -> &DATE

0x3fc - need des

Trait Implementations§

source§

impl Debug for LP_IO

source§

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

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

impl Deref for LP_IO

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for LP_IO

Auto Trait Implementations§

§

impl Freeze for LP_IO

§

impl RefUnwindSafe 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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.