pub struct UART0 { /* private fields */ }

Implementations§

source§

impl UART0

source

pub unsafe fn steal() -> UART0

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 PTR: *const <UART0 as Deref>::Target = {0x3ff40000 as *const <esp32::UART0 as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

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

0x00 -

source

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

0x04 -

source

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

0x08 -

source

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

0x0c -

source

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

0x10 -

source

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

0x14 -

source

pub fn autobaud(&self) -> &Reg<AUTOBAUD_SPEC>

0x18 -

source

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

0x1c -

source

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

0x20 -

source

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

0x24 -

source

pub fn lowpulse(&self) -> &Reg<LOWPULSE_SPEC>

0x28 -

source

pub fn highpulse(&self) -> &Reg<HIGHPULSE_SPEC>

0x2c -

source

pub fn rxd_cnt(&self) -> &Reg<RXD_CNT_SPEC>

0x30 -

source

pub fn flow_conf(&self) -> &Reg<FLOW_CONF_SPEC>

0x34 -

source

pub fn sleep_conf(&self) -> &Reg<SLEEP_CONF_SPEC>

0x38 -

source

pub fn swfc_conf(&self) -> &Reg<SWFC_CONF_SPEC>

0x3c -

source

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

0x40 -

source

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

0x44 -

source

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

0x48 -

source

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

0x4c -

source

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

0x50 -

source

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

0x54 -

source

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

0x58 -

source

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

0x5c -

source

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

0x60 -

source

pub fn mem_cnt_status(&self) -> &Reg<MEM_CNT_STATUS_SPEC>

0x64 -

source

pub fn pospulse(&self) -> &Reg<POSPULSE_SPEC>

0x68 -

source

pub fn negpulse(&self) -> &Reg<NEGPULSE_SPEC>

0x6c -

source

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

0x78 -

source

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

0x7c -

Trait Implementations§

source§

impl Debug for UART0

source§

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

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

impl Deref for UART0

§

type Target = <UART0 as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for UART0

source§

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

Mutably dereferences the value.
source§

impl Peripheral for UART0

§

type P = UART0

Peripheral singleton type
source§

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

impl Instance for UART0

Auto Trait Implementations§

§

impl RefUnwindSafe for UART0

§

impl Send for UART0

§

impl Sync for UART0

§

impl Unpin for UART0

§

impl UnwindSafe for UART0

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.