MDK-ARM Keil, MDK-ARM Datasheet - Page 128

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
128
Human Interface Device
The Human Interface Device (HID) within Windows is primarily used to support
USB mice and keyboards. The HID driver can also be used to interface any other
I/O device. For an embedded system, the HID driver can be used to pass control
and configuration information between a host client and the embedded
application.
Once the HID support has been
enabled in the
must add the
provide the class support. This
module provides the necessary C
code to handle the USB host
control packets associated with
the HID class. In addition, you
must also modify the device
descriptors to match the USB
peripheral configuration.
/**************************************************
*
**************************************************/
USB_INTERFACE_DESCRIPTOR_TYPE,
In the Interface descriptor we can enable HID class support. The HID driver has
dedicated protocols to support mice and keyboards. If we do not enable a
specific HID protocol (HID_SUBCLASS_NONE, HID_PROTOCOL_NONE), the
USB host requests additional Report descriptors. These Report descriptors allow
you to define a custom protocol for our device.
HID Report Descriptors
The Report descriptor has a well-defined description language, which allows you
to define the structure of data exchanges between the USB host and your device.
The specification for the HID Report descriptor can be downloaded from the
USB Implementers’ Forum, together with an HID descriptor tool, which can be
0x00,
0x00,
0x01,
USB_DEVICE_CLASS_HUMAN_INTERFACE,
HID_SUBCLASS_NONE,
HID_PROTOCOL_NONE,
usbdesc.c
hiduser.c
usbcfg.h
module to
file, you
// bDescriptorType
// bInterfaceNumber
// bAlternateSetting
// bNumEndpoints
// bInterfaceClass
// bInterfaceSubClass
// bInterfaceProtocl
Chapter 5. RL-USB Introduction

Related parts for MDK-ARM