summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-09-24 14:26:44 +0800
committersakumisu <[email protected]>2022-09-24 14:26:44 +0800
commit4109adf61608d571da08c34b0f0bb625f5dc090d (patch)
tree80af3eb7eb84b2d2eb5d3976e6cf382f5dc432ae
parentbd40ff0660b49abe28bd63c36888091085cb9663 (diff)
add iso config in urb
-rw-r--r--common/usb_hc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/usb_hc.h b/common/usb_hc.h
index 61af3f65..51a66e0a 100644
--- a/common/usb_hc.h
+++ b/common/usb_hc.h
@@ -30,6 +30,18 @@ struct usbh_endpoint_cfg {
};
/**
+ * @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.
*
* Structure containing the 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[];
};
/**