STMicroelectronics AN2328 HID Device Coding Example Application Note

This document describes how to lookup and use HID devices under Windows. It is related to the MEMS Evaluation boards which are usually connected via USB and accessed through the MEMS USB Reader software. The document provides a section of source code only, however, for a complete project it is necessary to add proper result testing and exception handling.


STMicroelectronics AN2328 HID Device Coding Example Application Note - cover page
Brand
STMicroelectronics
Category
Other Electronics
Document type
Application Note
Language
English
Pages
7
File format
PDF
File size
54 KB
Published
06 August, 2012
Updated
29 September, 2023
MD5 checksum
661755A8B436C6BB78456B86CD32E2FE

About this manual

This document describes how to lookup and use HID (Human Interface Device) devices under Windows. It is related to MEMS Evaluation boards usually connected via USB and accessed through the MEMS USB Reader software. The note provides a section of source code to assist in developing applications, though a complete project requires adding proper result testing and exception handling.

The application note includes a coding example that demonstrates how to dynamically load the HID library, lookup devices, and read data from them. It covers functions such as loading the library, getting product strings and GUIDs, enumerating device interfaces, and reading input reports.

What's inside

  • Introduction
  • Coding example
  • Load HID library
  • Lookup device
  • Open device
  • Read device
  • Conclusion
  • References

Frequently asked questions

What operating system does this application note describe for using HID devices?

The note describes how to lookup and use HID devices under Windows.

What software is this note related to for accessing MEMS Evaluation boards?

The note is related to the MEMS USB Reader software used to access MEMS Evaluation boards connected via USB.

What additional components are necessary to create a complete project beyond the provided source code?

A complete project requires adding proper result testing and exception handling to the provided source code section.

Download PDF (54 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →