
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
174 of 368
NXP Semiconductors
UM10375
Chapter 11: LPC13xx USB on-chip drivers
11.5.5 Human interface device information
The following structure is used to pass the HID device information:
typedef struct _HID_DEVICE_INFO {
uint16_t idVendor;
uint16_t idProduct;
uint16_t bcdDevice;
uint32_t StrDescPtr;
uint8_t InReportCount;
uint8_t OutReportCount;
uint8_t SampleInterval;
void (*InReport)( uint8_t src[], uint32_t length);
void (*OutReport)(uint8_t dst[], uint32_t length);
} HID_DEVICE_INFO;
MemorySize
Memory size in number of bytes
MSC_Write
Write call back function. This function is provided by the application software.
This function gets called when host sends a write command.
Input Parameters:
Offset – Destination start address
Source Pointer – Pointer to the source of data
Length – Number of bytes to be written
MSC_Read
Read call back function. This function is provided by the application software.
This function gets called when host sends a read command.
Input Parameters:
Offset – Destination start address
Destination Pointer – Pointer to the destination of data
Length – Number of bytes to be read
Table 187. Mass storage device information class structure
Member
Description
Table 188. Human interface device information class structure
Member
Description
idVendor
Vendor ID
idProduct
Product ID
bcdDevice
Device release number
StrDescPtr
Pointer to the String Describing the Manufacturer, Product and Serial
number. Refer to
for an example.
InReportCount
Number of bytes in InReport
OutReportCount
Number of bytes in OutReport