Add functionality to abort an ongoing transfer

This commit is contained in:
Jan Dümpelmann
2020-09-04 15:40:23 +02:00
parent 4071e490e2
commit 9cc22b635c
4 changed files with 43 additions and 0 deletions
+3
View File
@@ -70,6 +70,9 @@ void usbd_edpt_close(uint8_t rhport, uint8_t ep_addr);
// Submit a usb transfer
bool usbd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t total_bytes);
// Abort a scheduled transfer
bool usbd_edpt_xfer_abort(uint8_t rhport, uint8_t ep_addr);
// Check if endpoint transferring is complete
bool usbd_edpt_busy(uint8_t rhport, uint8_t ep_addr);