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 USBHost by
Diff: USBHost/USBEndpoint.h
- Revision:
- 4:b320d68e98e7
- Parent:
- 0:a554658735bf
- Child:
- 8:93da8ea2708b
diff -r 0f5c32575eb8 -r b320d68e98e7 USBHost/USBEndpoint.h --- a/USBHost/USBEndpoint.h Wed Mar 06 17:50:07 2013 +0000 +++ b/USBHost/USBEndpoint.h Tue Mar 12 17:23:37 2013 +0000 @@ -114,6 +114,7 @@ void setSpeed(uint8_t speed); void setSize(uint32_t size); inline void setDir(ENDPOINT_DIRECTION d) { dir = d; } + inline void setIntfNb(uint8_t intf_nb_) { intf_nb = intf_nb_; }; // getters const char * getStateString(); @@ -132,6 +133,7 @@ inline volatile HCTD* getNextTD() { return td_current; }; inline bool isSetup() { return setup; } inline USBEndpoint * nextEndpoint() { return (USBEndpoint*)nextEp; }; + inline uint8_t getIntfNb() { return intf_nb; }; USBDeviceConnected * dev; @@ -157,8 +159,9 @@ volatile HCTD * td_list[2]; volatile HCTD * td_current; volatile HCTD * td_next; + + uint8_t intf_nb; }; #endif -