[riot-notifications] [RIOT-OS/RIOT] [WIP] USBUS: Initial work towards an USB stack (#10916)

Koen Zandberg notifications at github.com
Mon Mar 4 15:34:30 CET 2019


bergzand commented on this pull request.



> +     */
+    int (*event_handler)(usbus_t *usbus, struct usbus_handler *handler, uint16_t event, void *arg);
+} usbus_handler_driver_t;
+
+/**
+ * @ USBUS handler struct
+ *
+ * Inherit from this struct for custom USB functionality
+ */
+struct usbus_handler {
+    struct usbus_handler *next;           /**< List of handlers (to be used by
+                                               @ref usbus_t) */
+    const usbus_handler_driver_t *driver; /**< driver for this handler */
+    usbus_interface_t *iface;             /**< Interface this handler belongs
+                                               to */
+    uint32_t flags;                       /**< Report flags */

Maybe learn from [previous discussion](https://github.com/RIOT-OS/RIOT/pull/10214#discussion_r260477918) and define a `usbus_handler_flags_t` for this

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10916#pullrequestreview-210169344
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/3b92dac1/attachment.html>


More information about the notifications mailing list