nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ hid_reportq_unsubscribe()

int hid_reportq_unsubscribe ( struct hid_reportq * q,
uint8_t rep_id )

#include <applications/nrf_desktop/src/util/hid_reportq.h>

Unsubscribe from HID report with given ID.

Disabling subscription for a given HID report ID, drops all of the enqueued HID reports related to the ID.

Parameters
[in]qPointer to the queue instance.
[in]rep_idHID report ID.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.