This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 USB HID, how to set up and send a feature report?

Hello,

I want to use  USB HID and set up  a feature report to send some configuration data. Is there any example to guide how  to do it?

Tks

Parents Reply
  • Hi, 

    Sorry to make the misunderstand. The Feature report is only supported by SDK16. 

    Handling feature reports has been added to the SDK16. It is implemented similarly to output reports, i.e. it can be modified by the host using SET_REPORT and GET_REPORT requests. To modify it on the device side, you can use:

    app_usbd_hid_report_buffer_t const * p_feature = app_usbd_hid_rep_buff_feature_get(p_hinst);
    p_feature->p_buff[0] = 0x12;
    p_feature->p_buff[1] = 0x34;
    p_feature->p_buff[2] = 0x56;

    -Amanda H. 

Children
No Data
Related