11#ifndef _HID_REPORTQ_H_
12#define _HID_REPORTQ_H_
70 const uint8_t *data,
size_t size);
void hid_reportq_subscribe(struct hid_reportq *q, uint8_t rep_id)
Subscribe for HID report with given ID.
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.
struct hid_reportq * hid_reportq_alloc(const void *sub_id, uint8_t report_max)
Allocate a HID report queue object instance.
void hid_reportq_unsubscribe(struct hid_reportq *q, uint8_t rep_id)
Unsubscribe from HID report with given ID.
void hid_reportq_free(struct hid_reportq *q)
Free HID report queue object instance.
void hid_reportq_report_sent(struct hid_reportq *q, uint8_t rep_id, bool err)
Notify HID report queue that HID report was sent.
const void * hid_reportq_get_sub_id(struct hid_reportq *q)
Get ID of HID subscriber related to a HID report queue object instance.
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.