nRF Connect SDK API 2.8.99
|
int hid_reportq_report_add | ( | struct hid_reportq * | q, |
const void * | src_id, | ||
uint8_t | rep_id, | ||
const uint8_t * | data, | ||
size_t | size ) |
#include <applications/nrf_desktop/src/util/hid_reportq.h>
Add a HID report to the queue.
The function returns an error if HID report subscription is disabled for the added HID report.
If number of enqueued reports with a given report ID exceeds limit defined by the configuration (
CONFIG_DESKTOP_HID_REPORTQ_MAX_ENQUEUED_REPORTS
), the oldest enqueued HID report with the ID is dropped.
[in] | q | Pointer to the queue instance. |
[in] | src_id | ID of HID report source. |
[in] | rep_id | HID report ID. |
[in] | data | HID report data. |
[in] | size | Size of the HID report data. |