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

◆ hid_reportq_report_add()

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.

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