USB interface functions for the stm32 class devices. More...
USB interface functions for the stm32 class devices.
Files | |
file | usbdev_stm32.h |
USB interface functions for the stm32 OTG FS/HS class devices. | |
Data Structures | |
struct | stm32_usbdev_fs_t |
stm32 USB Device FS only peripheral device context More... | |
Macros | |
#define | DWC2_USB_OTG_FS_NUM_EP STM32_USB_OTG_FS_NUM_EP |
Number of endpoints available with the OTG FS peripheral including the control endpoint. | |
#define | DWC2_USB_OTG_HS_NUM_EP STM32_USB_OTG_HS_NUM_EP |
Number of endpoints available with the OTG HS peripheral including the control endpoint. | |
#define | DWC2_USB_OTG_FS_RX_FIFO_SIZE (128U) |
USB OTG FS FIFO reception buffer space in 32-bit words. | |
#define | DWC2_USB_OTG_HS_RX_FIFO_SIZE (512U) |
USB OTG HS FIFO reception buffer space in 32-bit words. | |
#define | USB_OTG_FS_TOTAL_FIFO_SIZE (1280U) |
USB OTG FS FIFO total size in bytes. | |
#define | USB_OTG_HS_TOTAL_FIFO_SIZE (4096U) |
USB OTG FS FIFO total size in bytes. | |
#define | DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE USB_OTG_FS_TOTAL_FIFO_SIZE |
USB OTG FS FIFO total size in bytes. | |
#define | DWC2_USB_OTG_HS_TOTAL_FIFO_SIZE USB_OTG_HS_TOTAL_FIFO_SIZE |
USB OTG HS FIFO total size in bytes. | |
#define DWC2_USB_OTG_FS_NUM_EP STM32_USB_OTG_FS_NUM_EP |
Number of endpoints available with the OTG FS peripheral including the control endpoint.
Definition at line 53 of file usbdev_stm32.h.
#define DWC2_USB_OTG_FS_RX_FIFO_SIZE (128U) |
USB OTG FS FIFO reception buffer space in 32-bit words.
Used as shared FIFO for reception of all OUT transfers from the host
Definition at line 70 of file usbdev_stm32.h.
#define DWC2_USB_OTG_FS_TOTAL_FIFO_SIZE USB_OTG_FS_TOTAL_FIFO_SIZE |
USB OTG FS FIFO total size in bytes.
Definition at line 107 of file usbdev_stm32.h.
#define DWC2_USB_OTG_HS_NUM_EP STM32_USB_OTG_HS_NUM_EP |
Number of endpoints available with the OTG HS peripheral including the control endpoint.
Definition at line 59 of file usbdev_stm32.h.
#define DWC2_USB_OTG_HS_RX_FIFO_SIZE (512U) |
USB OTG HS FIFO reception buffer space in 32-bit words.
Used as shared FIFO for reception of all OUT transfers from the host
Definition at line 79 of file usbdev_stm32.h.
#define DWC2_USB_OTG_HS_TOTAL_FIFO_SIZE USB_OTG_HS_TOTAL_FIFO_SIZE |
USB OTG HS FIFO total size in bytes.
Definition at line 112 of file usbdev_stm32.h.
#define USB_OTG_FS_TOTAL_FIFO_SIZE (1280U) |
USB OTG FS FIFO total size in bytes.
Some device families (F7 and L4) forgot to define the FS device FIFO size in their vendor headers. This define sets it to the value from the reference manual.
Definition at line 90 of file usbdev_stm32.h.
#define USB_OTG_HS_TOTAL_FIFO_SIZE (4096U) |
USB OTG FS FIFO total size in bytes.
Some device families (F7 and L4) forgot to define the HS device FIFO size in their vendor headers. This define sets it to the value from the reference manual.
Definition at line 101 of file usbdev_stm32.h.