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

Koen Zandberg notifications at github.com
Thu May 30 20:30:33 CEST 2019


bergzand commented on this pull request.



> +    uint8_t max_packet_size;    /**< EP0 max packet size (8, 16, 32 or 64 bytes)        */
+    uint16_t vendor_id;         /**< Vendor ID (as assigned by the USB-IF)              */
+    uint16_t product_id;        /**< Product ID                                         */
+    uint16_t bcd_device;        /**< Binary-coded decimal device release                */
+    uint8_t manufacturer_idx;   /**< Manufacturer string index number                   */
+    uint8_t product_idx;        /**< Product string index number                        */
+    uint8_t serial_idx;         /**< Device serial number string index number           */
+    uint8_t num_configurations; /**< Number of possible configurations                  */
+} usb_descriptor_device_t;
+
+/**
+ * @brief USB configuration descriptor (USB 2.0 spec table 9-10)
+ */
+typedef struct __attribute__((packed)) {
+    uint8_t length;             /**< Size of this descriptor                                 */
+    uint8_t type;               /**< Descriptor type (@ref USB_TYPE_DESCRIPTOR_CONFIGURATION */

Fixed

-- 
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_r289115428
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190530/55c505e6/attachment.html>


More information about the notifications mailing list