Trait stm32_usbd::UsbPeripheral [−][src]
A trait for device-specific USB peripherals. Implement this to add support for a new hardware platform. Peripherals that have this trait must have the same register block as STM32 USBFS peripherals.
Associated Constants
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_SIZE: usize
[src]
Endpoint memory size in bytes
const EP_MEMORY_ACCESS_2X16: bool
[src]
Endpoint memory access scheme
Check Reference Manual for details.
Set to true
if “2x16 bits/word” access scheme is used, otherwise set to false
.
Required methods
fn enable()
[src]
Enables USB device on its peripheral bus
fn startup_delay()
[src]
Performs a chip specific startup delay
This function is called in UsbBus::enable()
after deasserting the pdwn
bit and before
peripheral initialization.