Module stm32_hal2::usb [−][src]
Expand description
USB support, including for simulated COM ports. This module is a thin wrapper required to work with
the stm32_usbd
crate.
Requires the usb
feature.
Used on F303, L4x2, L4x3, L5, G0, and G4. F4, L4x5, L4x6 and H7 use the usb_otg
module.
For G0 series, USB is only available on G0B0, G0B1, G0C1, which the PAC doesn’t yet differentiate,
and this library doesn’t yet support.
Structs
Represents a Universal Serial Bus (USB) peripheral. Functionality is implemented through the
implemented stm32_usbd::UsbPeripheral
trait.
USB peripheral driver for STM32 microcontrollers.
Functions
Enables the Vdd USB power supply. Note that we also need to enable PWREN
in APB1,
but we handle this using the RTC setup. Use a raw pointer if doing this without the RTC
already set up.
Type Definitions
Type of the UsbBus