LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
usbd_desc.h
Go to the documentation of this file.
1
/***********************************************************************
2
* $Id: mw_usbd_desc.h.rca 1.3 Tue Nov 1 11:45:07 2011 nlv09221 Experimental $
3
*
4
* Project: USB device ROM Stack
5
*
6
* Description:
7
* USB Descriptors Definitions.
8
*
9
***********************************************************************
10
* Copyright(C) 2011, NXP Semiconductor
11
* All rights reserved.
12
*
13
* Software that is described herein is for illustrative purposes only
14
* which provides customers with programming information regarding the
15
* products. This software is supplied "AS IS" without any warranties.
16
* NXP Semiconductors assumes no responsibility or liability for the
17
* use of the software, conveys no license or title under any patent,
18
* copyright, or mask work right to the product. NXP Semiconductors
19
* reserves the right to make changes in the software without
20
* notification. NXP Semiconductors also make no representation or
21
* warranty that such application will be suitable for the specified
22
* use without further testing or modification.
23
**********************************************************************/
24
25
#ifndef __USBDESC_H__
26
#define __USBDESC_H__
27
28
#include "
usbd.h
"
29
30
#define WBVAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF)
31
#define B3VAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF),(((x) >> 16) & 0xFF)
32
33
#define USB_DEVICE_DESC_SIZE (sizeof(USB_DEVICE_DESCRIPTOR))
34
#define USB_CONFIGUARTION_DESC_SIZE (sizeof(USB_CONFIGURATION_DESCRIPTOR))
35
#define USB_INTERFACE_DESC_SIZE (sizeof(USB_INTERFACE_DESCRIPTOR))
36
#define USB_ENDPOINT_DESC_SIZE (sizeof(USB_ENDPOINT_DESCRIPTOR))
37
#define USB_DEVICE_QUALI_SIZE (sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR))
38
#define USB_OTHER_SPEED_CONF_SIZE (sizeof(USB_OTHER_SPEED_CONFIGURATION))
39
40
#define HID_DESC_SIZE (sizeof(HID_DESCRIPTOR))
41
#define HID_REPORT_DESC_SIZE (sizeof(HID_ReportDescriptor))
42
43
extern
const
uint8_t
HID_ReportDescriptor
[];
44
extern
const
uint16_t
HID_ReportDescSize
;
45
extern
const
uint16_t
HID_DescOffset
;
46
47
48
#endif
/* __USBDESC_H__ */
software
lpc_core
lpc_ip
usbd_rom
usbd_desc.h
Generated on Fri May 10 2013 10:42:20 for LPCOpen Platform by
1.8.2