I imported a USB dev_hid_generic demo and saw this comment, after echoing "USB device HID generic demo".
usb_echo("USB device HID generic demo\r\n");
/* Get the HID mouse class handle */
g_UsbDeviceHidGeneric.hidHandle = g_UsbDeviceHidConfigList.config->classHandle;
I wonder why is it there, since this demo clearly has nothing to do specifically with a mouse-related device - there are other demos for that.
This is what the demo description declares:
The USB HID generic application is a simple demonstration program based on the MCUXpresso SDK. It is enumerated as a HID-compliant device. A PC application can be used to exchange data with the device.
If I am using this demo for sending/receiving data from a device which is not a mouse, why would it "get the HID mouse class handle"?