Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of F401RE-USBHost by
Diff: USBHost/USBHALHost_KL46Z.h
- Revision:
- 16:981c3104f6c0
- Parent:
- 11:61843badd06e
- Child:
- 18:61554f238584
diff -r d14c06cc5c07 -r 981c3104f6c0 USBHost/USBHALHost_KL46Z.h --- a/USBHost/USBHALHost_KL46Z.h Fri Jun 13 01:52:44 2014 +0000 +++ b/USBHost/USBHALHost_KL46Z.h Mon Jun 23 20:30:04 2014 +0900 @@ -54,11 +54,14 @@ void setEndpoint(); void token_transfer_init(); int token_setup(USBEndpoint* ep, SETUP_PACKET* setup, uint16_t wLength = 0); + int multi_token_in(USBEndpoint* ep, uint8_t* data = NULL, size_t total = 0, bool block = true); + int multi_token_out(USBEndpoint* ep, const uint8_t* data = NULL, size_t total = 0, bool block = true); + int token_iso_in(USBEndpoint* ep, uint8_t* data, int size); + void token_ready(); + +private: int token_in(USBEndpoint* ep, uint8_t* data = NULL, int size = 0, int retryLimit = 10); int token_out(USBEndpoint* ep, const uint8_t* data = NULL, int size = 0, int retryLimit = 10); - int token_iso_in(USBEndpoint* ep, uint8_t* data, int size); - void token_ready(); -private: static void _usbisr(void); void UsbIrqhandler(); __IO bool attach_done;