LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Generic Hid Device

Detailed Description

Example description
This example implements a generic HID device. It enumerates as a generic HID device with a simple one byte report and communicates with a simple PC application that drives LEDs and reports the state of buttons on the board.

When the example is run and the board is connected to a PC with a USB cable it will enumerate on the PC as a generic HID device. You should see the device appear in the "Device Manager" under the "Human Interface Device". If you right click on USB Input Device->Properties a window will appear called "USB Input Device Properties". If you select the "Details" tab you will see a "Properties" drop down, click on it and select "Hardware Ids". You should see the below entries for Vendor Id and Product Id.

USB\VID_1FC9&PID_0007&REV_0100
USB\VID_1FC9&PID_0007

This information should match the data in the "Device Descriptor Sturcture" in the "Descriptors.c" file in the Example_GenericHIDDevice project directory.

Run the included PC application HIDClient.exe to send reports between the host and device. Use the Device: drop down list box to select "LPCUSBlib Generic HID Demo" Press buttons on the board and see check boxes become checked in the first row Click the check boxes in the second row to light up LEDs on the board.
Special connection requirements
Need to connect with base board for using buttons and joystick

Build procedures:
LPC11xx example quickstart for Code Red Xpresso
LPC11xx example quickstart for Keil uVision4
LPC11xx example quickstart for IAR EWARM

Supported boards and board setup:
NXP Xpresso LPC11U14 board
NXP Xpresso LPC11C24 board

Submitting LPCOpen issues:
Community support for LPCOpen

Modules

 Class descriptors
 
 Main definitions
 
 ROM stack support