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 USBHostWANDongle by
Diff: USBHost/USBDeviceConnected.h
- Revision:
- 2:a8b2d0cd9bbd
- Parent:
- 0:ae46a0638b2c
- Child:
- 3:4394986752db
--- a/USBHost/USBDeviceConnected.h Fri May 25 09:31:41 2012 +0000
+++ b/USBHost/USBDeviceConnected.h Tue Jun 26 13:43:54 2012 +0000
@@ -55,11 +55,13 @@
/*
* Retrieve an endpoint by its TYPE and DIRECTION
*
+ * @param intf_nb the interface on which to lookup the endpoint
* @param type type of the endpoint looked for
* @param direction of the endpoint looked for
+ * @param index the index of the endpoint whitin the interface
* @returns pointer on the endpoint if found, NULL otherwise
*/
- Endpoint * getEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir);
+ Endpoint * getEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir, uint8_t index = 0);
/*
* Retrieve an endpoint by its index
