mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-13 14:00:22 +01:00
usb: Add USB Host Library documentation
This commit adds the USB Host Library documentation and fixes some nitpicks in the Host Stack types. Closes https://github.com/espressif/esp-idf/issues/6408
This commit is contained in:
@@ -474,7 +474,7 @@ typedef union {
|
||||
struct {
|
||||
uint8_t bLength; /**< Size of the descriptor in bytes */
|
||||
uint8_t bDescriptorType; /**< STRING Descriptor Type */
|
||||
uint16_t wData[0]; /**< UTF-16LE encoded */
|
||||
uint16_t wData[]; /**< UTF-16LE encoded */
|
||||
} USB_DESC_ATTR;
|
||||
uint8_t val[USB_STR_DESC_SIZE];
|
||||
} usb_str_desc_t;
|
||||
|
||||
@@ -138,7 +138,7 @@ struct usb_transfer_s{
|
||||
usb_transfer_cb_t callback; /**< Transfer callback */
|
||||
void *context; /**< Context variable for transfer to associate transfer with something */
|
||||
const int num_isoc_packets; /**< Only relevant to Isochronous. Number of service periods (i.e., intervals) to transfer data buffer over. */
|
||||
usb_isoc_packet_desc_t isoc_packet_desc[0]; /**< Descriptors for each Isochronous packet */
|
||||
usb_isoc_packet_desc_t isoc_packet_desc[]; /**< Descriptors for each Isochronous packet */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user