Struct stm32_hal2::usb::Peripheral[][src]

pub struct Peripheral {
    pub usb: USB,
}
Expand description

USB Peripheral

Constructs the peripheral, which than gets passed to the UsbBus.

Fields

usb: USB

USB Register Block

Trait Implementations

impl UsbPeripheral for Peripheral[src]

const REGISTERS: *const ()[src]

Pointer to the register block

const DP_PULL_UP_FEATURE: bool[src]

Embedded pull-up resistor on USB_DP line

const EP_MEMORY: *const ()[src]

Pointer to the endpoint memory

const EP_MEMORY_ACCESS_2X16: bool[src]

Endpoint memory access scheme Read more

const EP_MEMORY_SIZE: usize[src]

Endpoint memory size in bytes

fn enable()[src]

Enables USB device on its peripheral bus

fn startup_delay()[src]

Performs a chip specific startup delay Read more

impl Sync for Peripheral[src]

Auto Trait Implementations

impl Send for Peripheral

impl Unpin for Peripheral

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.