The following structures provide the USB device descriptors required for USB Device with a single interface HID generic.
It is ready to use and do not require more definition.
Data Structures | |
struct | udc_desc_t |
Structure for USB Device Configuration Descriptor. More... | |
Macros | |
#define | UDI_HID_GENERIC_EP_IN (1 | USB_EP_DIR_IN) |
#define | UDI_HID_GENERIC_EP_OUT (2 | USB_EP_DIR_OUT) |
Endpoint number used by HID generic interface. More... | |
#define | UDI_HID_GENERIC_IFACE_NUMBER 0 |
Interface number. More... | |
#define | USB_DEVICE_EP_CTRL_SIZE 8 |
Control endpoint size. More... | |
#define | USB_DEVICE_NB_INTERFACE 1 |
Only one interface for this device. More... | |
Variables | |
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE udc_desc_t | udc_desc |
USB Device Configuration Descriptor filled for FS and HS. More... | |
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t | udc_device_desc |
USB Device Descriptor. More... | |
UDC structures which contains 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_fshs [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... | |
UDD Configuration | |
#define | USB_DEVICE_MAX_EP 2 |
2 endpoints used by HID generic standard interface More... | |
#define UDI_HID_GENERIC_EP_IN (1 | USB_EP_DIR_IN) |
Referenced by udi_hid_generic_send_report_in().
#define UDI_HID_GENERIC_EP_OUT (2 | USB_EP_DIR_OUT) |
Endpoint number used by HID generic interface.
Referenced by udi_hid_generic_report_out_enable().
#define UDI_HID_GENERIC_IFACE_NUMBER 0 |
Interface number.
#define USB_DEVICE_EP_CTRL_SIZE 8 |
Control endpoint size.
#define USB_DEVICE_MAX_EP 2 |
2 endpoints used by HID generic standard interface
#define USB_DEVICE_NB_INTERFACE 1 |
Only one interface for this device.
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.
UDC_DESC_STORAGE udc_config_speed_t udc_config_fshs[1] |
Add UDI with USB Descriptors FS & HS.
USB Device Configuration Descriptor filled for FS and HS.
COMPILER_WORD_ALIGNED UDC_DESC_STORAGE usb_dev_desc_t udc_device_desc |
USB Device Descriptor.
Pointer on the selected speed device configuration.
UDC_DESC_STORAGE udi_api_t* udi_apis[USB_DEVICE_NB_INTERFACE] |
Associate an UDI for each USB interface.