SWRA715 December 2021 CC2642R , CC2652R
HID consumer reports are a special type of HID input which enable many additional HID features such as volume control, media playback control, and power controls. These inputs are commonly used in media keys on keyboards. HID Consumer reports are implemented in project. The functionality of the consumer report operation is nearly identical to that of the keyboard operation. The keyboard structure within the hid_input union is used for packaging the input. However, instead of using the keypress members to package the input, the consumer reports use the reserved member of the structure. The consumer report IDs that are supported by the project can be found in the hidemukbd.c file. The section of the report map that corresponds to the consumer report operation is shown in Figure 4-4.
Once the consumer report input has been packaged in the hid_input variable, then the input transmission may be sent to the HID Host by calling the HidEmuKbd_sendConsumerInput() function. The demo portion of this project, sends consumer reports alongside keyboard button presses when a button on the LaunchPad is pressed.