In the function CALLBACK_USB_GetDescriptor in the exsample you wrote:
const uint8_t DescriptorType = (wValue >> 8);
const uint8_t DescriptorNumber = (wValue & 0xFF);
are you sure?
I think it should look like this:
const uint8_t DescriptorType = (wValue >> 8);
const uint8_t DescriptorNumber = (wValue & 0xF);
In the function CALLBACK_USB_GetDescriptor in the exsample you wrote: const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xFF); are you sure? I think it should look like this: const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xF);
Regards