USBHost custom library.
Dependents: GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more
Fork of USBHost by
Diff: USBHost/USBEndpoint.h
- Revision:
- 4:b320d68e98e7
- Parent:
- 0:a554658735bf
- Child:
- 8:93da8ea2708b
--- 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 -