I'm developing HID device using HID generic class. Device is required to change polling rate at startup. In SDK 14.2 this was done through modifying bInterval in descriptor extracted by app_usbd_class_descriptor_find().
But in SDK this don't work because in app_usbd_hid_generic bInterval value is hard coded to 1:
static bool hid_generic_feed_descriptors(...)
...
APP_USBD_CLASS_DESCRIPTOR_WRITE(0x01); // bInterval
...
static bool hid_generic_feed_descriptors(...) ... APP_USBD_CLASS_DESCRIPTOR_WRITE(0x01); // bInterval ...
How can I change polling rate of endpoint in SDK 15?
Can it be done without rewriting or modifying HID generic class?
Thanks!