diff options
| author | Ha Thach <[email protected]> | 2023-07-24 22:08:53 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-24 22:08:53 +0700 |
| commit | 9554283b03cb4af00119ccd5a38e539749b32d53 (patch) | |
| tree | 93c878d68b05feae51aa672f5021005297997e30 /src/host/hcd.h | |
| parent | 0b38941362b6ff2fe3fb7aba1507e82798cd9c16 (diff) | |
| parent | fda92fd34a8fe0d08e5c51fab4ea38f6849051e8 (diff) | |
Merge pull request #2175 from hathach/hcd-abort-xfer
Add HCD abort xfer API
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index a98286053..50f1dcdcc 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -171,6 +171,10 @@ 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 +// Return true if a queued transfer is aborted, false if there is no transfer to abort +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]); |
