From 4109adf61608d571da08c34b0f0bb625f5dc090d Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 24 Sep 2022 14:26:44 +0800 Subject: [PATCH] add iso config in urb --- common/usb_hc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 @@ -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[]; }; /**