]> git.sur5r.net Git - armstart-ibdap/blobdiff - inc/usbd/usbd_desc.h
initial commit
[armstart-ibdap] / inc / usbd / usbd_desc.h
diff --git a/inc/usbd/usbd_desc.h b/inc/usbd/usbd_desc.h
new file mode 100644 (file)
index 0000000..c03f942
--- /dev/null
@@ -0,0 +1,48 @@
+/***********************************************************************\r
+* $Id:: mw_usbd_desc.h 165 2011-04-14 17:41:11Z usb10131                      $\r
+*\r
+* Project: USB device ROM Stack\r
+*\r
+* Description:\r
+*     USB Descriptors Definitions.\r
+*\r
+***********************************************************************\r
+*   Copyright(C) 2011, NXP Semiconductor\r
+*   All rights reserved.\r
+*\r
+* Software that is described herein is for illustrative purposes only\r
+* which provides customers with programming information regarding the\r
+* products. This software is supplied "AS IS" without any warranties.\r
+* NXP Semiconductors assumes no responsibility or liability for the\r
+* use of the software, conveys no license or title under any patent,\r
+* copyright, or mask work right to the product. NXP Semiconductors\r
+* reserves the right to make changes in the software without\r
+* notification. NXP Semiconductors also make no representation or\r
+* warranty that such application will be suitable for the specified\r
+* use without further testing or modification.\r
+**********************************************************************/\r
+\r
+#ifndef __USBDESC_H__\r
+#define __USBDESC_H__\r
+\r
+#include "usbd.h"\r
+\r
+#define WBVAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF)\r
+#define B3VAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF),(((x) >> 16) & 0xFF)\r
+\r
+#define USB_DEVICE_DESC_SIZE        (sizeof(USB_DEVICE_DESCRIPTOR))\r
+#define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR))\r
+#define USB_INTERFACE_DESC_SIZE     (sizeof(USB_INTERFACE_DESCRIPTOR))\r
+#define USB_ENDPOINT_DESC_SIZE      (sizeof(USB_ENDPOINT_DESCRIPTOR))\r
+#define USB_DEVICE_QUALI_SIZE       (sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR))\r
+#define USB_OTHER_SPEED_CONF_SIZE   (sizeof(USB_OTHER_SPEED_CONFIGURATION))\r
+\r
+//#define HID_DESC_SIZE               (sizeof(HID_DESCRIPTOR))\r
+//#define HID_REPORT_DESC_SIZE        (sizeof(HID_ReportDescriptor))\r
+\r
+extern const uint8_t  HID_ReportDescriptor[];\r
+extern const uint16_t HID_ReportDescSize;\r
+extern const uint16_t HID_DescOffset;\r
+\r
+\r
+#endif  /* __USBDESC_H__ */\r