USB Host WAN Dongle library

Fork of USBHostWANDongle_bleedingedge by Donatien Garnier

Committer:
ashleymills
Date:
Fri Sep 20 10:40:15 2013 +0000
Revision:
27:980fe31c14f7
Parent:
12:a712bad7a979
Added support for Ublox LISA U200 module

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 9:c9e9817c398c 1 /* Copyright (c) 2010-2012 mbed.org, MIT License
donatien 9:c9e9817c398c 2 *
donatien 9:c9e9817c398c 3 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
donatien 9:c9e9817c398c 4 * and associated documentation files (the "Software"), to deal in the Software without
donatien 9:c9e9817c398c 5 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
donatien 9:c9e9817c398c 6 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
donatien 9:c9e9817c398c 7 * Software is furnished to do so, subject to the following conditions:
donatien 9:c9e9817c398c 8 *
donatien 9:c9e9817c398c 9 * The above copyright notice and this permission notice shall be included in all copies or
donatien 9:c9e9817c398c 10 * substantial portions of the Software.
donatien 9:c9e9817c398c 11 *
donatien 9:c9e9817c398c 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
donatien 9:c9e9817c398c 13 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
donatien 9:c9e9817c398c 14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
donatien 9:c9e9817c398c 15 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
donatien 9:c9e9817c398c 16 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
donatien 9:c9e9817c398c 17 */
donatien 9:c9e9817c398c 18
donatien 9:c9e9817c398c 19 #ifndef IUSBENUMERATOR_H_
donatien 9:c9e9817c398c 20 #define IUSBENUMERATOR_H_
donatien 9:c9e9817c398c 21
donatien 9:c9e9817c398c 22 #include "stdint.h"
donatien 9:c9e9817c398c 23
donatien 9:c9e9817c398c 24 #include "USBEndpoint.h"
donatien 9:c9e9817c398c 25
donatien 9:c9e9817c398c 26 /*
donatien 9:c9e9817c398c 27 Generic interface to implement for "smart" USB enumeration
donatien 9:c9e9817c398c 28 */
donatien 9:c9e9817c398c 29
donatien 9:c9e9817c398c 30 class IUSBEnumerator {
donatien 9:c9e9817c398c 31 public:
donatien 9:c9e9817c398c 32
donatien 9:c9e9817c398c 33 virtual void setVidPid(uint16_t vid, uint16_t pid) = 0;
donatien 9:c9e9817c398c 34
donatien 9:c9e9817c398c 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 9:c9e9817c398c 36
donatien 9:c9e9817c398c 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 9:c9e9817c398c 38
donatien 9:c9e9817c398c 39 };
donatien 9:c9e9817c398c 40
donatien 12:a712bad7a979 41 #endif /*IUSBENUMERATOR_H_*/