esp_hal::peripherals

Struct UHCI0

Source
pub struct UHCI0 { /* private fields */ }
Expand description

Represents a virtual peripheral with no associated hardware.

This struct is generated by the create_peripheral! macro when the peripheral is defined as virtual.

Implementations§

Source§

impl UHCI0

Source

pub unsafe fn steal() -> Self

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§

impl UHCI0

Source

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

Pointer to the register block

Source

pub const fn ptr() -> *const <UHCI0 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 Register0

Source

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

0x04 - UHCI Interrupt Raw Register

Source

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

0x08 - UHCI Interrupt Status Register

Source

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

0x0c - UHCI Interrupt Enable Register

Source

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

0x10 - UHCI Interrupt Clear Register

Source

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

0x14 - UHCI Configuration Register1

Source

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

0x18 - UHCI Receive Status Register

Source

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

0x1c - UHCI Transmit Status Register

Source

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

0x20 - UHCI Escapes Configuration Register0

Source

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

0x24 - UHCI Hung Configuration Register0

Source

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

0x28 - UHCI Ack Value Configuration Register0

Source

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

0x2c - UHCI Head Register

Source

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

0x30 - UCHI Quick send Register

Source

pub fn reg_q(&self, n: usize) -> &REG_Q

0x34..0x6c - Cluster REG_Q%s, containing REG_Q?_WORD0, REG_Q?_WORD1

Source

pub fn reg_q_iter(&self) -> impl Iterator<Item = &REG_Q>

Iterator for array of: 0x34..0x6c - Cluster REG_Q%s, containing REG_Q?_WORD0, REG_Q?_WORD1

Source

pub fn esc_conf(&self, n: usize) -> &Reg<ESC_CONF_SPEC>

0x6c..0x7c - UHCI Escapes Sequence Configuration Register%s

Source

pub fn esc_conf_iter(&self) -> impl Iterator<Item = &Reg<ESC_CONF_SPEC>>

Iterator for array of: 0x6c..0x7c - UHCI Escapes Sequence Configuration Register%s

Source

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

0x7c - UCHI Packet Length Configuration Register

Source

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

0x80 - UHCI Version Register

Trait Implementations§

Source§

impl Debug for UHCI0

Source§

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

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

impl Deref for UHCI0

Source§

type Target = <UHCI0 as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for UHCI0

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Peripheral for UHCI0

Source§

type P = UHCI0

Peripheral singleton type
Source§

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

fn map_into<U>(self) -> U
where Self::P: Into<U>, U: Peripheral<P = U>,

Map the peripheral using Into. Read more

Auto Trait Implementations§

§

impl Freeze for UHCI0

§

impl RefUnwindSafe for UHCI0

§

impl Send for UHCI0

§

impl Sync for UHCI0

§

impl Unpin for UHCI0

§

impl UnwindSafe for UHCI0

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.