
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
175 of 368
NXP Semiconductors
UM10375
Chapter 11: LPC13xx USB on-chip drivers
11.6 USB descriptors
The USB driver reports several predefined descriptors during enumeration of the HID or
MSC device types. Certain fields of the descriptor are user-defined.
11.6.1 Standard descriptor
The USB driver reports the following predefined descriptor during enumeration of the HID
or MSC device. Fields in bold are user-defined.
Standard descriptors are combined in one string and the offset is fixed. iManufacture,
iProduct, and iSerialNumber strings must be of fixed size. See
for HID and
MSC descriptor examples.
SampleInterval
Interrupt endpoint (IN and OUT) sample interval in ms.
InReport
InReport call back function. This function is provided by the application
software. This function gets called when host sends a InReport command.
Input Parameters:
Source Pointer – Pointer to the destination of data
Length – Number of bytes to be read
OutReport
OutReport call back function. This function is provided by the application
software. This function gets called when host sends a OutReport command.
Input Parameters:
Source Pointer – Pointer to the source of data
Length – Number of bytes to be written
Table 188. Human interface device information class structure
Member
Description
Table 189. Standard descriptor
Field
Value
Description
bLength
0x12
Descriptor size in bytes
bDescriptorType
0x01
The constant Device (01h)
bcdUSB
0x0200
USB Specification release number (BCD)
bDeviceClass
0x00
Class Code
bDeviceSubClass
0x00
Subclass code
bDeviceProtocol
0x00
Protocol Code
bMaxPacketSize0
0x40
Maximum Packet size for endpoint 0
idVendor
User Defined
Vendor ID (Provided by the Application Software)
idProduct
User Defined
Product ID (Provided by the Application Software)
bcdDevice
User Defined
Device Release number
iManufacturer
0x04
Index of string descriptor for the manufacturer (fixed size)
iProduct
0x20
Index of string descriptor for the product (fixed size)
iSerialNumber
0x48
Index of string descriptor containing the serial number
(fixed size)
bNumConfigurations 0x01
Number of possible configurations