sakumisu 3 лет назад
Родитель
Сommit
4109adf616
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      common/usb_hc.h

+ 14 - 0
common/usb_hc.h

@@ -29,6 +29,18 @@ struct usbh_endpoint_cfg {
     uint8_t mult;        /* Endpoint additional transcation */
 };
 
+/**
+ * @brief USB Iso Configuration.
+ *
+ * Structure containing the USB Iso configuration.
+ */
+struct usbh_iso_frame_packet {
+    uint8_t *transfer_buffer;
+    uint32_t transfer_buffer_length;
+    uint32_t actual_length;
+    int errorcode;
+};
+
 /**
  * @brief USB Urb Configuration.
  *
@@ -43,8 +55,10 @@ struct usbh_urb {
     uint32_t actual_length;
     uint32_t timeout;
     int errorcode;
+    uint32_t num_of_iso_packets;
     usbh_complete_callback_t complete;
     void *arg;
+    struct usbh_iso_frame_packet iso_packet[];
 };
 
 /**