Skip to main content
  • 产品
  • Evaluate our Software
  • 下载
  • Free Utilities
  • 购买
  • 支持
  • 关于我们
  • Search
    • Contact Us
    • Forum
    • Knowledge Base
    • Newsletter
    • RSS
  •   工作机会
  •   视频
  •   永续性
  • emUSB-Device
  • HID Class
  • Technology
  • Add-Ons

HID Class

Contact us
Downloads
Documentation
SEGGER emUSB-Device
  1. 1.Overview
    1. 1.1.Key features
  2. 2.Application Samples emUSB-Device HID
  3. 3.HID Categories
  4. 4.Components
video game controller

Overview

The Human Interface Device class (HID) is an abstract USB class protocol defined by the USB Implementers Forum. This protocol was defined for the handling of devices which are used by humans to control the operation of computer systems.

An installation of a custom-host USB driver is not necessary, because the USB Human Interface Device class is standardized and every major OS already provides host drivers for it. Most notable usage of the HID class is the PC mouse and keyboard, but the class is also often used for pure data communication between a device and the PC even if the data is not directly created through user input (e.g. Uninterruptible Power Supply).

Key features

  • Handling of vendor-specific Usage Pages
  • Ready to use code examples for keyboard, mouse and vendor-specific HID
  • No host driver required for Windows / Linux /
    macOS
  • Small footprint

Application Samples emUSB-Device HID

keyboard mouse

Keyboard & Mouse

barcode scanner

Barcode Scanner

touchscreen

Touch Screen

industrial joystick

Joystick

fingerprint sensor

Fingerprint Sensor

rfid reader

RFID Reader

3d tracker

3D Mouse

trackball

Trackball

USV

Uninterruptible Power Supply

weighing scale

Weighing Scale

HID Categories

Devices which are in the HID class basically fall into one of two categories:
"True HIDs" and vendor specific HIDs, explained in the following paragraphs. One or more examples for both categories are provided.

 

True HIDs

HID devices communicating with the host operating system. Devices which are used by a human being to input / output data, but do not directly exchange data with an application program running on the host.

 

Vendor Specific HIDs

These are HID devices communicating with an application program. The host OS loads the same driver it loads for any "true HID" and will automatically enumerate the device, but it can not communicate with the device. When analyzing the report descriptor, the host finds out that it can not exchange information with the device; the device uses a protocol which is meaningless to the HID driver of the host. The Host will therefore not exchange information with the device. A host recognizes a vendor specific HID by its vendor defined usage page in the report descriptor: The numerical value of the usage page is between 0xFF00 and 0xFFFF. An application has the chance to communicate with the particular device using API functions offered by the host. This allows an application program to communicate with the device without having to load a driver. HID does not take advantage of the full USB bus bandwidth; bulk communication can be much faster, but requires a driver. Therefore it can be a good choice to select HID as device class, especially if easy-of use is important and achieving the best communication speed is not a requirement.

Components

Components required to use the HID class:

  • emUSB HID
  • emUSB-Device core
  • emUSB target driver

Resource usage

emUSB device hide class structure

全球总部

德国: SEGGER Microcontroller GmbH

地址: Ecolab-Allee 5
40789 Monheim am Rhein, Germany
电邮: info@segger.com
电话: +49-2173-99312-0
传真: +49-2173-99312-28

网点分布

中国:哲戈微系统科技(上海)有限公司

地址: 中国上海市闵行区秀涟路133号
大虹桥国际A 栋218室
邮编201199
电邮: china@segger.com
电话: +86-133-619-907-60

通过ISO 9001认证

ISO 9001

30多年的嵌入式行业经验

First-class embedded software tools since 1992
  • 版本说明
  • 免责声明
  • 隐私策略
  • 沪ICP备2022005181号
  • 沪公网安备 31011202014525号
© 2025 SEGGER - 版权所有.

您即将离开 segger.cn 而访问境外网站,是否继续?