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

Koen Zandberg notifications at github.com
Mon Mar 4 15:31:42 CET 2019


bergzand commented on this pull request.



> +    const usbus_handler_driver_t *driver; /**< driver for this handler */
+    usbus_interface_t *iface;             /**< Interface this handler belongs
+                                               to */
+    uint32_t flags;                       /**< Report flags */
+};
+
+/**
+ * @brief helper struct to divide control messages in multiple parts
+ */
+typedef struct {
+    size_t start;                   /**< Start offset of the current part */
+    size_t cur;                     /**< Current position in the message  */
+    size_t len;                     /**< Length of the full message       */
+    size_t transfered;              /**< Number of bytes transfered       */
+    size_t reqlen;                  /**< Maximum length of the request    */
+} usbus_controlslicer_t;

Should be moved to it's own header file with the function implementations in `usbus_controlslicer.c`

-- 
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-210167873
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/16b8e7be/attachment.html>


More information about the notifications mailing list