nRF5 SDK v14.0.0
USB HID Generic Example
This information applies to the nRF52840 SoC only.

This example uses the USB HID class modules. See the documentation of these modules for links to relevant specification documents.

This example shows how to use the HID generic class. Generic protocol is used when user-defined reports are exchanged between the USB host and the device. The example shows how to handle a HID mouse like device using the HID generic protocol.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\usbd_hid_generic

LED assignments:

Button assignments:

Testing

Test the USB HID Generic Example application by performing the following steps:

  1. Compile and program the application.
  2. Connect the development kit to the host computer.
  3. The device will enumerate as a HID mouse class.
  4. Press the buttons on the development kit and observe results on the host computer and on the LEDs.

Documentation feedback | Developer Zone | Subscribe | Updated