summaryrefslogtreecommitdiff
path: root/src/host/usbh.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-07-20 11:20:12 +0700
committerhathach <[email protected]>2023-07-21 12:43:48 +0700
commit1cc7c5d0309bcc7c6930fba78bc461e5822e8024 (patch)
tree233b24ca011f913a71c08f9636c09dfc549b9c20 /src/host/usbh.h
parent17576a6949ced2fa7febca0d90da2f8afc8b6913 (diff)
add hcd_edpt_abort_xfer() API
Diffstat (limited to 'src/host/usbh.h')
-rw-r--r--src/host/usbh.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 0f969a46a..d765f6744 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -172,8 +172,11 @@ bool tuh_control_xfer(tuh_xfer_t* xfer);
// - sync : blocking if complete callback is NULL.
bool tuh_edpt_xfer(tuh_xfer_t* xfer);
-// Open an non-control endpoint
-bool tuh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep);
+// Open a non-control endpoint
+bool tuh_edpt_open(uint8_t daddr, tusb_desc_endpoint_t const * desc_ep);
+
+// Abort a queued transfer. Note: it can only abort transfer that has not been started
+bool tuh_edpt_abort_xfer(uint8_t daddr, uint8_t ep_addr);
// Set Configuration (control transfer)
// config_num = 0 will un-configure device. Note: config_num = config_descriptor_index + 1