Struct USB_DEVICE

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

Implementations§

Source§

impl USB_DEVICE

Source

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

Pointer to the register block

Source

pub unsafe fn steal() -> USB_DEVICE

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn ep1(&self) -> &Reg<EP1_SPEC>

0x00 - FIFO access for the CDC-ACM data IN and OUT endpoints.

Source

pub fn ep1_conf(&self) -> &Reg<EP1_CONF_SPEC>

0x04 - Configuration and control registers for the CDC-ACM FIFOs.

Source

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

0x08 - Interrupt raw status register.

Source

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

0x0c - Interrupt status register.

Source

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

0x10 - Interrupt enable status register.

Source

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

0x14 - Interrupt clear status register.

Source

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

0x18 - PHY hardware configuration.

Source

pub fn test(&self) -> &Reg<TEST_SPEC>

0x1c - Registers used for debugging the PHY.

Source

pub fn jfifo_st(&self) -> &Reg<JFIFO_ST_SPEC>

0x20 - JTAG FIFO status and control registers.

Source

pub fn fram_num(&self) -> &Reg<FRAM_NUM_SPEC>

0x24 - Last received SOF frame index register.

Source

pub fn in_ep0_st(&self) -> &Reg<IN_EP0_ST_SPEC>

0x28 - Control IN endpoint status information.

Source

pub fn in_ep1_st(&self) -> &Reg<IN_EP1_ST_SPEC>

0x2c - CDC-ACM IN endpoint status information.

Source

pub fn in_ep2_st(&self) -> &Reg<IN_EP2_ST_SPEC>

0x30 - CDC-ACM interrupt IN endpoint status information.

Source

pub fn in_ep3_st(&self) -> &Reg<IN_EP3_ST_SPEC>

0x34 - JTAG IN endpoint status information.

Source

pub fn out_ep0_st(&self) -> &Reg<OUT_EP0_ST_SPEC>

0x38 - Control OUT endpoint status information.

Source

pub fn out_ep1_st(&self) -> &Reg<OUT_EP1_ST_SPEC>

0x3c - CDC-ACM OUT endpoint status information.

Source

pub fn out_ep2_st(&self) -> &Reg<OUT_EP2_ST_SPEC>

0x40 - JTAG OUT endpoint status information.

Source

pub fn misc_conf(&self) -> &Reg<MISC_CONF_SPEC>

0x44 - Clock enable control

Source

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

0x48 - Memory power control

Source

pub fn chip_rst(&self) -> &Reg<CHIP_RST_SPEC>

0x4c - CDC-ACM chip reset control.

Source

pub fn set_line_code_w0(&self) -> &Reg<SET_LINE_CODE_W0_SPEC>

0x50 - W0 of SET_LINE_CODING command.

Source

pub fn set_line_code_w1(&self) -> &Reg<SET_LINE_CODE_W1_SPEC>

0x54 - W1 of SET_LINE_CODING command.

Source

pub fn get_line_code_w0(&self) -> &Reg<GET_LINE_CODE_W0_SPEC>

0x58 - W0 of GET_LINE_CODING command.

Source

pub fn get_line_code_w1(&self) -> &Reg<GET_LINE_CODE_W1_SPEC>

0x5c - W1 of GET_LINE_CODING command.

Source

pub fn config_update(&self) -> &Reg<CONFIG_UPDATE_SPEC>

0x60 - Configuration registers’ value update

Source

pub fn ser_afifo_config(&self) -> &Reg<SER_AFIFO_CONFIG_SPEC>

0x64 - Serial AFIFO configure register

Source

pub fn bus_reset_st(&self) -> &Reg<BUS_RESET_ST_SPEC>

0x68 - USB Bus reset status register

Source

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

0x80 - Date register

Trait Implementations§

Source§

impl Debug for USB_DEVICE

Source§

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

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

impl Deref for USB_DEVICE

Source§

type Target = <USB_DEVICE as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for USB_DEVICE

Source§

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

Mutably dereferences the value.
Source§

impl Instance for USB_DEVICE

Source§

impl Peripheral for USB_DEVICE

Source§

type P = USB_DEVICE

Peripheral singleton type
Source§

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