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"?
HI crabbo_babbo
What's your chip part number?
Please let me know, thus I will check.
Thanks,
Jun Zhang
Hello, this is a LPC55S69-EVK
Have a good day
Hi
Get HID handler (g_UsbDeviceHidGeneric.hidHandle ) is important here.
But I agree with you that the comment may confuse people.
I will suggest it to SDK team.
Thanks,
Jun Zhang