Struct USB_DEVICE
#[non_exhaustive]pub struct USB_DEVICE;
Expand description
USB_DEVICE peripheral singleton
Implementations§
§impl USB_DEVICE
impl USB_DEVICE
pub 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.
§impl USB_DEVICE
impl USB_DEVICE
pub const PTR: *const <USB_DEVICE as Deref>::Target = {0x6000f000 as *const <esp32c6::USB_DEVICE as core::ops::Deref>::Target}
Available on crate feature unstable
only.
pub const PTR: *const <USB_DEVICE as Deref>::Target = {0x6000f000 as *const <esp32c6::USB_DEVICE as core::ops::Deref>::Target}
unstable
only.Pointer to the register block
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
pub const fn ptr() -> *const <USB_DEVICE as Deref>::Target
Available on crate feature unstable
only.
pub const fn ptr() -> *const <USB_DEVICE as Deref>::Target
unstable
only.Return the pointer to the register block
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
§impl Debug for USB_DEVICE
impl Debug for USB_DEVICE
§impl Peripheral for USB_DEVICE
impl Peripheral for USB_DEVICE
§type P = USB_DEVICE
type P = USB_DEVICE
Peripheral singleton type
§unsafe fn clone_unchecked(&self) -> <USB_DEVICE as Peripheral>::P
unsafe fn clone_unchecked(&self) -> <USB_DEVICE as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more
§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
Convert a value into a
PeripheralRef
. Read moreAuto Trait Implementations§
impl Freeze for USB_DEVICE
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