pub struct UHCI1 { /* private fields */ }

Implementations§

source§

impl UHCI1

source

pub unsafe fn steal() -> UHCI1

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 <UHCI1 as Deref>::Target = {0x6000c000 as *const <esp32s3::UHCI1 as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

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

0x00 - UHCI configuration 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 app_int_set(&self) -> &Reg<APP_INT_SET_SPEC>

0x14 - Software interrupt trigger source

source

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

0x18 - UHCI configuration register

source

pub fn state0(&self) -> &Reg<STATE0_SPEC>

0x1c - UHCI receive status

source

pub fn state1(&self) -> &Reg<STATE1_SPEC>

0x20 - UHCI transmit status

source

pub fn escape_conf(&self) -> &Reg<ESCAPE_CONF_SPEC>

0x24 - Escape character configuration

source

pub fn hung_conf(&self) -> &Reg<HUNG_CONF_SPEC>

0x28 - Timeout configuration

source

pub fn ack_num(&self) -> &Reg<ACK_NUM_SPEC>

0x2c - UHCI ACK number configuration

source

pub fn rx_head(&self) -> &Reg<RX_HEAD_SPEC>

0x30 - UHCI packet header register

source

pub fn quick_sent(&self) -> &Reg<QUICK_SENT_SPEC>

0x34 - UHCI quick send configuration register

source

pub fn reg_q0_word0(&self) -> &Reg<REG_Q0_WORD0_SPEC>

0x38 - Q0_WORD0 quick_sent register

source

pub fn reg_q0_word1(&self) -> &Reg<REG_Q0_WORD1_SPEC>

0x3c - Q0_WORD1 quick_sent register

source

pub fn reg_q1_word0(&self) -> &Reg<REG_Q1_WORD0_SPEC>

0x40 - Q1_WORD0 quick_sent register

source

pub fn reg_q1_word1(&self) -> &Reg<REG_Q1_WORD1_SPEC>

0x44 - Q1_WORD1 quick_sent register

source

pub fn reg_q2_word0(&self) -> &Reg<REG_Q2_WORD0_SPEC>

0x48 - Q2_WORD0 quick_sent register

source

pub fn reg_q2_word1(&self) -> &Reg<REG_Q2_WORD1_SPEC>

0x4c - Q2_WORD1 quick_sent register

source

pub fn reg_q3_word0(&self) -> &Reg<REG_Q3_WORD0_SPEC>

0x50 - Q3_WORD0 quick_sent register

source

pub fn reg_q3_word1(&self) -> &Reg<REG_Q3_WORD1_SPEC>

0x54 - Q3_WORD1 quick_sent register

source

pub fn reg_q4_word0(&self) -> &Reg<REG_Q4_WORD0_SPEC>

0x58 - Q4_WORD0 quick_sent register

source

pub fn reg_q4_word1(&self) -> &Reg<REG_Q4_WORD1_SPEC>

0x5c - Q4_WORD1 quick_sent register

source

pub fn reg_q5_word0(&self) -> &Reg<REG_Q5_WORD0_SPEC>

0x60 - Q5_WORD0 quick_sent register

source

pub fn reg_q5_word1(&self) -> &Reg<REG_Q5_WORD1_SPEC>

0x64 - Q5_WORD1 quick_sent register

source

pub fn reg_q6_word0(&self) -> &Reg<REG_Q6_WORD0_SPEC>

0x68 - Q6_WORD0 quick_sent register

source

pub fn reg_q6_word1(&self) -> &Reg<REG_Q6_WORD1_SPEC>

0x6c - Q6_WORD1 quick_sent register

source

pub fn esc_conf0(&self) -> &Reg<ESC_CONF0_SPEC>

0x70 - Escape sequence configuration register 0

source

pub fn esc_conf1(&self) -> &Reg<ESC_CONF1_SPEC>

0x74 - Escape sequence configuration register 1

source

pub fn esc_conf2(&self) -> &Reg<ESC_CONF2_SPEC>

0x78 - Escape sequence configuration register 2

source

pub fn esc_conf3(&self) -> &Reg<ESC_CONF3_SPEC>

0x7c - Escape sequence configuration register 3

source

pub fn pkt_thres(&self) -> &Reg<PKT_THRES_SPEC>

0x80 - Configure register for packet length

source

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

0x84 - UHCI version control register

Trait Implementations§

source§

impl Debug for UHCI1

source§

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

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

impl Deref for UHCI1

§

type Target = <UHCI1 as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for UHCI1

source§

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

Mutably dereferences the value.
source§

impl Peripheral for UHCI1

§

type P = UHCI1

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <UHCI1 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 RefUnwindSafe for UHCI1

§

impl Send for UHCI1

§

impl Sync for UHCI1

§

impl Unpin for UHCI1

§

impl UnwindSafe for UHCI1

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.