Vodafone K3770/K3772-Z modems driver & networking library
This library is deprecated. Please use the newest production branch of the library from https://mbed.org/users/mbed_official/code/VodafoneUSBModem/
USBHostWANDongleLib/USBHost/IUSBEnumerator.h@0:bd5343539e38, 2012-08-17 (annotated)
- Committer:
- donatien
- Date:
- Fri Aug 17 15:21:55 2012 +0000
- Revision:
- 0:bd5343539e38
Initial public commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
donatien | 0:bd5343539e38 | 1 | /* Copyright (c) 2010-2012 mbed.org, MIT License |
donatien | 0:bd5343539e38 | 2 | * |
donatien | 0:bd5343539e38 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
donatien | 0:bd5343539e38 | 4 | * and associated documentation files (the "Software"), to deal in the Software without |
donatien | 0:bd5343539e38 | 5 | * restriction, including without limitation the rights to use, copy, modify, merge, publish, |
donatien | 0:bd5343539e38 | 6 | * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the |
donatien | 0:bd5343539e38 | 7 | * Software is furnished to do so, subject to the following conditions: |
donatien | 0:bd5343539e38 | 8 | * |
donatien | 0:bd5343539e38 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
donatien | 0:bd5343539e38 | 10 | * substantial portions of the Software. |
donatien | 0:bd5343539e38 | 11 | * |
donatien | 0:bd5343539e38 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
donatien | 0:bd5343539e38 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
donatien | 0:bd5343539e38 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
donatien | 0:bd5343539e38 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
donatien | 0:bd5343539e38 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
donatien | 0:bd5343539e38 | 17 | */ |
donatien | 0:bd5343539e38 | 18 | |
donatien | 0:bd5343539e38 | 19 | #ifndef IUSBENUMERATOR_H_ |
donatien | 0:bd5343539e38 | 20 | #define IUSBENUMERATOR_H_ |
donatien | 0:bd5343539e38 | 21 | |
donatien | 0:bd5343539e38 | 22 | #include "stdint.h" |
donatien | 0:bd5343539e38 | 23 | |
donatien | 0:bd5343539e38 | 24 | #include "USBEndpoint.h" |
donatien | 0:bd5343539e38 | 25 | |
donatien | 0:bd5343539e38 | 26 | /* |
donatien | 0:bd5343539e38 | 27 | Generic interface to implement for "smart" USB enumeration |
donatien | 0:bd5343539e38 | 28 | */ |
donatien | 0:bd5343539e38 | 29 | |
donatien | 0:bd5343539e38 | 30 | class IUSBEnumerator { |
donatien | 0:bd5343539e38 | 31 | public: |
donatien | 0:bd5343539e38 | 32 | |
donatien | 0:bd5343539e38 | 33 | virtual void setVidPid(uint16_t vid, uint16_t pid) = 0; |
donatien | 0:bd5343539e38 | 34 | |
donatien | 0:bd5343539e38 | 35 | virtual bool parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol) = 0; //Must return true if the interface should be parsed |
donatien | 0:bd5343539e38 | 36 | |
donatien | 0:bd5343539e38 | 37 | virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir) = 0; //Must return true if the endpoint will be used |
donatien | 0:bd5343539e38 | 38 | |
donatien | 0:bd5343539e38 | 39 | }; |
donatien | 0:bd5343539e38 | 40 | |
donatien | 0:bd5343539e38 | 41 | #endif /*IUSBENUMERATOR_H_*/ |