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

nRF52840 USBD set up report feature

Hello,

With nRF52840, I using SDK ver.16 to create a USB HID multiple touchscreen.
I need to set up value some HID feature report. Such as Contact count maximum.
I have followed peripheral/usbd_hid_generic example, but this not mention.
Is there any example to guide how to do it?
This is feature report descriptor

/* FEATURE REPORT ID Max Contact */                                              \
    0x85, FEATURE_REP_MCONT_ID,    /*   REPORT_ID(3)                              */ \
    0x09, 0x55,                    /*   USAGE(Contact Count Maximum)              */ \
    0x25, 0x0A,                    /*   LOGICAL_MAXIMUM (10)                      */ \
    0x75, 0x08,                    /*   REPORT_SIZE (8)                           */ \
    0x95, 0x01,                    /*   REPORT_COUNT(1)                           */ \
    0xB1, 0x02,                    /*   FEATURE (Data,Var,Abs)                    */ \

Thanks.

Parents Reply Children
  • Hi

    Thanks for your's answer.
    But those are two different cases.
    This case is USBD HID, set and transfer to host the feature_report value after define report descriptor.

    I used app_usbd_hid_generic_in_report_set () to send the input_report buffer, it succeeded.
    Does this function also pass the feature_report buffer?
    If yes, when should I execute, after APP_USBD_EVT_STARTED event?

    Vy

Related