1 |
/*---------------------------------------------------------------------------- |
---|
2 |
* U S B - K e r n e l |
---|
3 |
*---------------------------------------------------------------------------- |
---|
4 |
* Name: USBDESC.H |
---|
5 |
* Purpose: USB Descriptors Definitions |
---|
6 |
* Version: V1.10 |
---|
7 |
*---------------------------------------------------------------------------- |
---|
8 |
* This file is part of the uVision/ARM development tools. |
---|
9 |
* This software may only be used under the terms of a valid, current, |
---|
10 |
* end user licence from KEIL for a compatible version of KEIL software |
---|
11 |
* development tools. Nothing else gives you the right to use it. |
---|
12 |
* |
---|
13 |
* Copyright (c) 2005-2006 Keil Software. |
---|
14 |
*---------------------------------------------------------------------------*/ |
---|
15 |
|
---|
16 |
#ifndef __USBDESC_H__ |
---|
17 |
#define __USBDESC_H__ |
---|
18 |
|
---|
19 |
|
---|
20 |
#define WBVAL(x) (x & 0xFF),((x >> 8) & 0xFF) |
---|
21 |
|
---|
22 |
#define USB_DEVICE_DESC_SIZE (sizeof(USB_DEVICE_DESCRIPTOR)) |
---|
23 |
#define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR)) |
---|
24 |
#define USB_INTERFACE_DESC_SIZE (sizeof(USB_INTERFACE_DESCRIPTOR)) |
---|
25 |
#define USB_ENDPOINT_DESC_SIZE (sizeof(USB_ENDPOINT_DESCRIPTOR)) |
---|
26 |
|
---|
27 |
#define HID_DESC_OFFSET 0x0012 |
---|
28 |
#define HID_DESC_SIZE (sizeof(HID_DESCRIPTOR)) |
---|
29 |
#define HID_REPORT_DESC_SIZE (sizeof(HID_ReportDescriptor)) |
---|
30 |
|
---|
31 |
extern const BYTE USB_DeviceDescriptor[]; |
---|
32 |
extern const BYTE USB_ConfigDescriptor[]; |
---|
33 |
extern const BYTE USB_StringDescriptor[]; |
---|
34 |
|
---|
35 |
extern const BYTE HID_ReportDescriptor[]; |
---|
36 |
extern const WORD HID_ReportDescSize; |
---|
37 |
|
---|
38 |
|
---|
39 |
#endif /* __USBDESC_H__ */ |
---|