Classes | |
struct | udc_desc_t |
Structure for USB Device Configuration Descriptor. More... | |
Macros | |
#define | USB_DEVICE_EP_CTRL_SIZE 64 |
Control endpoint size (Endpoint 0) More... | |
#define | USB_DEVICE_NB_INTERFACE (2*UDI_CDC_PORT_NB) |
Two interfaces for a CDC device. More... | |
#define | USB_VERSION USB_V2_0 |
Variables | |
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE udc_desc_t | udc_desc_fs |
USB Device Configuration Descriptor filled for full and high speed. More... | |
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t | udc_device_desc |
USB Device Descriptor. More... | |
Default endpoint configuration | |
The USBB, UDP, UDPHS and UOTGHS interfaces can support up to 2 CDC interfaces. | |
#define | UDI_CDC_DATA_EP_IN_0 (1 | USB_EP_DIR_IN) |
#define | UDI_CDC_DATA_EP_OUT_0 (2 | USB_EP_DIR_OUT) |
#define | UDI_CDC_COMM_EP_0 (3 | USB_EP_DIR_IN) |
#define | UDI_CDC_DATA_EP_IN_1 (4 | USB_EP_DIR_IN) |
#define | UDI_CDC_DATA_EP_OUT_1 (5 | USB_EP_DIR_OUT) |
#define | UDI_CDC_COMM_EP_1 (6 | USB_EP_DIR_IN) |
#define | USB_DEVICE_MAX_EP (3*UDI_CDC_PORT_NB) |
3 endpoints used per CDC interface More... | |
Default Interface numbers | |
#define | UDI_CDC_COMM_IFACE_NUMBER_0 0 |
#define | UDI_CDC_DATA_IFACE_NUMBER_0 1 |
#define | UDI_CDC_COMM_IFACE_NUMBER_1 2 |
#define | UDI_CDC_DATA_IFACE_NUMBER_1 3 |
#define | UDI_CDC_COMM_IFACE_NUMBER_2 4 |
#define | UDI_CDC_DATA_IFACE_NUMBER_2 5 |
#define | UDI_CDC_COMM_IFACE_NUMBER_3 6 |
#define | UDI_CDC_DATA_IFACE_NUMBER_3 7 |
#define | UDI_CDC_COMM_IFACE_NUMBER_4 8 |
#define | UDI_CDC_DATA_IFACE_NUMBER_4 9 |
#define | UDI_CDC_COMM_IFACE_NUMBER_5 10 |
#define | UDI_CDC_DATA_IFACE_NUMBER_5 11 |
#define | UDI_CDC_COMM_IFACE_NUMBER_6 12 |
#define | UDI_CDC_DATA_IFACE_NUMBER_6 13 |
UDC structures which content all USB Device definitions | |
UDC_DESC_STORAGE udi_api_t * | udi_apis [USB_DEVICE_NB_INTERFACE] |
Associate an UDI for each USB interface. More... | |
UDC_DESC_STORAGE udc_config_speed_t | udc_config_fs [1] |
Add UDI with USB Descriptors FS & HS. More... | |
UDC_DESC_STORAGE udc_config_t | udc_config |
Add all information about USB Device in global structure for UDC. More... | |
The following structures provide the USB device descriptors required for USB Device with a single interface CDC.
It is ready to use and do not require more definition.
#define UDI_CDC_COMM_EP_0 (3 | USB_EP_DIR_IN) |
Definition at line 103 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_EP_1 (6 | USB_EP_DIR_IN) |
Definition at line 112 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_0 0 |
Definition at line 125 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_1 2 |
Definition at line 127 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_2 4 |
Definition at line 129 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_3 6 |
Definition at line 131 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_4 8 |
Definition at line 133 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_5 10 |
Definition at line 135 of file udi_cdc_conf.h.
#define UDI_CDC_COMM_IFACE_NUMBER_6 12 |
Definition at line 137 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_EP_IN_0 (1 | USB_EP_DIR_IN) |
Definition at line 101 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_EP_IN_1 (4 | USB_EP_DIR_IN) |
Definition at line 110 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_EP_OUT_0 (2 | USB_EP_DIR_OUT) |
Definition at line 102 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_EP_OUT_1 (5 | USB_EP_DIR_OUT) |
Definition at line 111 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_0 1 |
Definition at line 126 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_1 3 |
Definition at line 128 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_2 5 |
Definition at line 130 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_3 7 |
Definition at line 132 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_4 9 |
Definition at line 134 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_5 11 |
Definition at line 136 of file udi_cdc_conf.h.
#define UDI_CDC_DATA_IFACE_NUMBER_6 13 |
Definition at line 138 of file udi_cdc_conf.h.
#define USB_DEVICE_EP_CTRL_SIZE 64 |
Control endpoint size (Endpoint 0)
Definition at line 57 of file udi_cdc_conf.h.
#define USB_DEVICE_MAX_EP (3*UDI_CDC_PORT_NB) |
3 endpoints used per CDC interface
Definition at line 116 of file udi_cdc_conf.h.
#define USB_DEVICE_NB_INTERFACE (2*UDI_CDC_PORT_NB) |
Two interfaces for a CDC device.
Definition at line 55 of file udi_cdc_desc.c.
#define USB_VERSION USB_V2_0 |
Definition at line 60 of file udi_cdc_desc.c.
UDC_DESC_STORAGE udc_config_t udc_config |
Add all information about USB Device in global structure for UDC.
Global variables of USB Device Descriptor and UDI links.
Definition at line 228 of file udi_cdc_desc.c.
UDC_DESC_STORAGE udc_config_speed_t udc_config_fs[1] |
Add UDI with USB Descriptors FS & HS.
Definition at line 216 of file udi_cdc_desc.c.
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE udc_desc_t udc_desc_fs |
USB Device Configuration Descriptor filled for full and high speed.
Definition at line 154 of file udi_cdc_desc.c.
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc |
USB Device Descriptor.
Definition at line 65 of file udi_cdc_desc.c.
UDC_DESC_STORAGE udi_api_t* udi_apis[USB_DEVICE_NB_INTERFACE] |
Associate an UDI for each USB interface.
Definition at line 207 of file udi_cdc_desc.c.