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

Koen Zandberg notifications at github.com
Tue Mar 26 21:12:21 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;

Shuffled things around a bit

-- 
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#discussion_r269294363
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190326/db548a57/attachment-0001.html>


More information about the notifications mailing list