Struct esp32c3_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.
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