diff options
| author | hathach <[email protected]> | 2023-07-20 11:20:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-21 12:43:48 +0700 |
| commit | 1cc7c5d0309bcc7c6930fba78bc461e5822e8024 (patch) | |
| tree | 233b24ca011f913a71c08f9636c09dfc549b9c20 /src/host/hcd.h | |
| parent | 17576a6949ced2fa7febca0d90da2f8afc8b6913 (diff) | |
add hcd_edpt_abort_xfer() API
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index 3355c18b2..cbfffb349 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -171,6 +171,9 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const // Submit a transfer, when complete hcd_event_xfer_complete() must be invoked bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * buffer, uint16_t buflen); +// Abort a queued transfer. Note: it can only abort transfer that has not been started +bool hcd_edpt_abort_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr); + // Submit a special transfer to send 8-byte Setup Packet, when complete hcd_event_xfer_complete() must be invoked bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet[8]); |
