Struct esp32s3_hal::peripherals::USB_DEVICE
source · pub struct USB_DEVICE { /* private fields */ }
Implementations§
source§impl USB_DEVICE
impl USB_DEVICE
sourcepub unsafe fn steal() -> USB_DEVICE
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.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn ep1_conf(&self) -> &Reg<EP1_CONF_SPEC>
pub fn ep1_conf(&self) -> &Reg<EP1_CONF_SPEC>
0x04 - Endpoint 1 configure and status register
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x08 - Raw status interrupt
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x0c - Masked interrupt
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x10 - Interrupt enable bits
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x14 - Interrupt clear bits
sourcepub fn conf0(&self) -> &Reg<CONF0_SPEC>
pub fn conf0(&self) -> &Reg<CONF0_SPEC>
0x18 - Configure 0 register
sourcepub fn jfifo_st(&self) -> &Reg<JFIFO_ST_SPEC>
pub fn jfifo_st(&self) -> &Reg<JFIFO_ST_SPEC>
0x20 - USB-JTAG FIFO status
sourcepub fn fram_num(&self) -> &Reg<FRAM_NUM_SPEC>
pub fn fram_num(&self) -> &Reg<FRAM_NUM_SPEC>
0x24 - SOF frame number
sourcepub fn in_ep0_st(&self) -> &Reg<IN_EP0_ST_SPEC>
pub fn in_ep0_st(&self) -> &Reg<IN_EP0_ST_SPEC>
0x28 - IN Endpoint 0 status
sourcepub fn in_ep1_st(&self) -> &Reg<IN_EP1_ST_SPEC>
pub fn in_ep1_st(&self) -> &Reg<IN_EP1_ST_SPEC>
0x2c - IN Endpoint 1 status
sourcepub fn in_ep2_st(&self) -> &Reg<IN_EP2_ST_SPEC>
pub fn in_ep2_st(&self) -> &Reg<IN_EP2_ST_SPEC>
0x30 - IN Endpoint 2 status
sourcepub fn in_ep3_st(&self) -> &Reg<IN_EP3_ST_SPEC>
pub fn in_ep3_st(&self) -> &Reg<IN_EP3_ST_SPEC>
0x34 - IN Endpoint 3 status
sourcepub fn out_ep0_st(&self) -> &Reg<OUT_EP0_ST_SPEC>
pub fn out_ep0_st(&self) -> &Reg<OUT_EP0_ST_SPEC>
0x38 - OUT Endpoint 0 status
sourcepub fn out_ep1_st(&self) -> &Reg<OUT_EP1_ST_SPEC>
pub fn out_ep1_st(&self) -> &Reg<OUT_EP1_ST_SPEC>
0x3c - OUT Endpoint 1 status
sourcepub fn out_ep2_st(&self) -> &Reg<OUT_EP2_ST_SPEC>
pub fn out_ep2_st(&self) -> &Reg<OUT_EP2_ST_SPEC>
0x40 - OUT Endpoint 2 status
sourcepub fn misc_conf(&self) -> &Reg<MISC_CONF_SPEC>
pub fn misc_conf(&self) -> &Reg<MISC_CONF_SPEC>
0x44 - MISC register
sourcepub fn mem_conf(&self) -> &Reg<MEM_CONF_SPEC>
pub fn mem_conf(&self) -> &Reg<MEM_CONF_SPEC>
0x48 - Power control
Trait Implementations§
source§impl Debug for USB_DEVICE
impl Debug for USB_DEVICE
source§impl Deref for USB_DEVICE
impl Deref for USB_DEVICE
source§impl DerefMut for USB_DEVICE
impl DerefMut for USB_DEVICE
source§impl Instance for USB_DEVICE
impl Instance for USB_DEVICE
fn register_block(&self) -> &RegisterBlock
fn disable_tx_interrupts(&mut self)
fn disable_rx_interrupts(&mut self)
fn get_rx_fifo_count(&self) -> u16
fn get_tx_fifo_count(&self) -> u16
fn txfifo_empty(&self) -> bool
source§impl Peripheral for USB_DEVICE
impl Peripheral for USB_DEVICE
§type P = USB_DEVICE
type P = USB_DEVICE
Peripheral singleton type
source§unsafe fn clone_unchecked(&mut self) -> <USB_DEVICE as Peripheral>::P
unsafe fn clone_unchecked(&mut self) -> <USB_DEVICE as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more
Auto Trait Implementations§
impl RefUnwindSafe for USB_DEVICE
impl Send for USB_DEVICE
impl Sync for USB_DEVICE
impl Unpin for USB_DEVICE
impl UnwindSafe for USB_DEVICE
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more