nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
HID report queue

Utility that simplifies queuing HID reports from HID peripherals on a HID dongle. More...

Functions

struct hid_reportq * hid_reportq_alloc (const void *sub_id, uint8_t report_max)
 Allocate a HID report queue object instance.
 
void hid_reportq_free (struct hid_reportq *q)
 Free HID report queue object instance.
 
const void * hid_reportq_get_sub_id (struct hid_reportq *q)
 Get ID of HID subscriber related to a HID report queue object instance.
 
int hid_reportq_report_add (struct hid_reportq *q, const void *src_id, uint8_t rep_id, const uint8_t *data, size_t size)
 Add a HID report to the queue.
 
void hid_reportq_report_sent (struct hid_reportq *q, uint8_t rep_id, bool err)
 Notify HID report queue that HID report was sent.
 
bool hid_reportq_is_subscribed (struct hid_reportq *q, uint8_t rep_id)
 Check if HID report queue is subscribed for HID report with given ID.
 
void hid_reportq_subscribe (struct hid_reportq *q, uint8_t rep_id)
 Subscribe for HID report with given ID.
 
void hid_reportq_unsubscribe (struct hid_reportq *q, uint8_t rep_id)
 Unsubscribe from HID report with given ID.
 

Detailed Description

Utility that simplifies queuing HID reports from HID peripherals on a HID dongle.