USBD_CUSTOM_HID_CfgDesc variable
Syntax
static uint8_t USBD_CUSTOM_HID_CfgDesc[USB_CUSTOM_HID_CONFIG_DESC_SIZ] __ALIGN_END =
{
0x09,
USB_DESC_TYPE_CONFIGURATION,
LOBYTE(USB_CUSTOM_HID_CONFIG_DESC_SIZ),
HIBYTE(USB_CUSTOM_HID_CONFIG_DESC_SIZ),
0x01,
0x01,
0x00,
#if (USBD_SELF_POWERED == 1U)
0xC0,
#else
0x80,
#endif
USBD_MAX_POWER,
0x09,
USB_DESC_TYPE_INTERFACE,
0x00,
0x00,
0x02,
0x03,
0x00,
0x00,
0x00,
0x09,
CUSTOM_HID_DESCRIPTOR_TYPE,
0x11,
0x01,
0x00,
0x01,
0x22,
LOBYTE(USBD_CUSTOM_HID_REPORT_DESC_SIZE),
HIBYTE(USBD_CUSTOM_HID_REPORT_DESC_SIZE),
0x07,
USB_DESC_TYPE_ENDPOINT,
CUSTOM_HID_EPIN_ADDR,
0x03,
LOBYTE(CUSTOM_HID_EPIN_SIZE),
HIBYTE(CUSTOM_HID_EPIN_SIZE),
CUSTOM_HID_FS_BINTERVAL,
0x07,
USB_DESC_TYPE_ENDPOINT,
CUSTOM_HID_EPOUT_ADDR,
0x03,
LOBYTE(CUSTOM_HID_EPOUT_SIZE),
HIBYTE(CUSTOM_HID_EPOUT_SIZE),
CUSTOM_HID_FS_BINTERVAL,
};