This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

hid_device (mouse)

Overview

The HID Device application implements a GATT server and the following profile and services.

  • HID over GATT Profile v1.0

  • Human Interface Device Service v1.0

  • Battery Service v1.0

  • Device Information Service v1.1

The application behaves as a GAP peripheral node. It enters GAP General Discoverable Mode and waits for a GAP central node to connect. Security on the services and bonding is enabled on this device. When the GATT client configures notification, the application starts sending HID reports every two seconds with the movement of the MOUSE_STEP. The demo moves the cursor in a square pattern between AXIS_MIN and AXIS_MAX. The report contains 3 bytes, one for button status, one for X axis, and one for Y axis. The report descriptor matches the example in chapter E.10 from the USB Device Class Definition for Human Interface Devices (USB HID Specification), Version 1.11.

Supported Boards

  • KW47-EVK

  • FRDM-MCXW71

  • K32W148-EVK

  • MCX-W72-EVK

  • KW45B41Z-EVK