瀏覽代碼

add iso config in urb

sakumisu 3 年之前
父節點
當前提交
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[];
 };
 
 /**