Struct LP_UART

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

Implementations§

Source§

impl LP_UART

Source

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

Pointer to the register block

Source

pub unsafe fn steal() -> LP_UART

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_UART as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn fifo(&self) -> &Reg<FIFO_SPEC>

0x00 - FIFO data register

Source

pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>

0x04 - Raw interrupt status

Source

pub fn int_st(&self) -> &Reg<INT_ST_SPEC>

0x08 - Masked interrupt status

Source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0x0c - Interrupt enable bits

Source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0x10 - Interrupt clear bits

Source

pub fn clkdiv(&self) -> &Reg<CLKDIV_SPEC>

0x14 - Clock divider configuration

Source

pub fn rx_filt(&self) -> &Reg<RX_FILT_SPEC>

0x18 - Rx Filter configuration

Source

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

0x1c - UART status register

Source

pub fn conf0(&self) -> &Reg<CONF0_SPEC>

0x20 - Configuration register 0

Source

pub fn conf1(&self) -> &Reg<CONF1_SPEC>

0x24 - Configuration register 1

Source

pub fn hwfc_conf(&self) -> &Reg<HWFC_CONF_SPEC>

0x2c - Hardware flow-control configuration

Source

pub fn sleep_conf0(&self) -> &Reg<SLEEP_CONF0_SPEC>

0x30 - UART sleep configure register 0

Source

pub fn sleep_conf1(&self) -> &Reg<SLEEP_CONF1_SPEC>

0x34 - UART sleep configure register 1

Source

pub fn sleep_conf2(&self) -> &Reg<SLEEP_CONF2_SPEC>

0x38 - UART sleep configure register 2

Source

pub fn swfc_conf0(&self) -> &Reg<SWFC_CONF0_SPEC>

0x3c - Software flow-control character configuration

Source

pub fn swfc_conf1(&self) -> &Reg<SWFC_CONF1_SPEC>

0x40 - Software flow-control character configuration

Source

pub fn txbrk_conf(&self) -> &Reg<TXBRK_CONF_SPEC>

0x44 - Tx Break character configuration

Source

pub fn idle_conf(&self) -> &Reg<IDLE_CONF_SPEC>

0x48 - Frame-end idle configuration

Source

pub fn rs485_conf(&self) -> &Reg<RS485_CONF_SPEC>

0x4c - RS485 mode configuration

Source

pub fn at_cmd_precnt(&self) -> &Reg<AT_CMD_PRECNT_SPEC>

0x50 - Pre-sequence timing configuration

Source

pub fn at_cmd_postcnt(&self) -> &Reg<AT_CMD_POSTCNT_SPEC>

0x54 - Post-sequence timing configuration

Source

pub fn at_cmd_gaptout(&self) -> &Reg<AT_CMD_GAPTOUT_SPEC>

0x58 - Timeout configuration

Source

pub fn at_cmd_char(&self) -> &Reg<AT_CMD_CHAR_SPEC>

0x5c - AT escape sequence detection configuration

Source

pub fn mem_conf(&self) -> &Reg<MEM_CONF_SPEC>

0x60 - UART memory power configuration

Source

pub fn tout_conf(&self) -> &Reg<TOUT_CONF_SPEC>

0x64 - UART threshold and allocation configuration

Source

pub fn mem_tx_status(&self) -> &Reg<MEM_TX_STATUS_SPEC>

0x68 - Tx-SRAM write and read offset address.

Source

pub fn mem_rx_status(&self) -> &Reg<MEM_RX_STATUS_SPEC>

0x6c - Rx-SRAM write and read offset address.

Source

pub fn fsm_status(&self) -> &Reg<FSM_STATUS_SPEC>

0x70 - UART transmit and receive status.

Source

pub fn clk_conf(&self) -> &Reg<CLK_CONF_SPEC>

0x88 - UART core clock configuration

Source

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

0x8c - UART Version register

Source

pub fn afifo_status(&self) -> &Reg<AFIFO_STATUS_SPEC>

0x90 - UART AFIFO Status

Source

pub fn reg_update(&self) -> &Reg<REG_UPDATE_SPEC>

0x98 - UART Registers Configuration Update register

Source

pub fn id(&self) -> &Reg<ID_SPEC>

0x9c - UART ID register

Trait Implementations§

Source§

impl Debug for LP_UART

Source§

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

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

impl Deref for LP_UART

Source§

type Target = <LP_UART as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for LP_UART

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for LP_UART

Source§

type P = LP_UART

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <LP_UART 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§

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.