[riot-notifications] [RIOT-OS/RIOT] usbus/hid_io: add missing header file, add RX callback function (#16689)

Leandro Lanzieri notifications at github.com
Wed Aug 4 13:16:45 CEST 2021

@leandrolanzieri commented on this pull request.

>  }
 void usb_hid_io_init(usbus_t *usbus, uint8_t *report_desc,
                      size_t report_desc_size)
     usbus_hid_init(usbus, &hid, _hid_rx_pipe,  report_desc, report_desc_size);
+void usb_hid_io_set_rx_cb(usb_hid_io_t *usb_hid_io)

> Also I think it is a good preparation for future PR's where `hid_io.c` might have have to manage multiple HID devices at once.

I see, but then it looks more like `usb_hid_iot_t` should be used in `usb_hid_io_init`, and this function would be something like `void usb_hid_io_set_rx_cb(usb_hid_io_t *usb_hid_io, usb_hid_io_cb_t cb, void *arg)`, right? Unless I misunderstood.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210804/9ad3ecd0/attachment.htm>

More information about the notifications mailing list