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

◆ hid_reportq_alloc()

struct hid_reportq * hid_reportq_alloc ( const void *  sub_id,
uint8_t  report_max 
)

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

Allocate a HID report queue object instance.

The function allocates HID report queue object instance from internal pool.

Parameters
[in]sub_idID of related HID subscriber.
[in]report_maxMaximum number of reports with different ID, which can be processed by related HID subscriber.
Returns
Pointer to the allocated HID report queue object instance or NULL in case of too small object pool.