USB Host Library for Sprint Dongles

Dependencies:   Socket USBHostWANDongleSprint lwip-sys lwip

Dependents:   SprintUSBModemWebsocketTest SprintUSBModemHTTPClientTest SprintUSBModemNTPClientTest SprintUSBModemSMSTest ... more

Fork of SprintUSBModem_bleedingedge by Donatien Garnier

Committer:
donatien
Date:
Mon Dec 10 18:23:49 2012 +0000
Revision:
14:f6f17843e5ef
Parent:
0:8f57713b2147
Separate USB/Sprint dev flows, fix regression in mbed rev. 41+ lib

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 0:8f57713b2147 1 /* LwIPInterface.h */
donatien 0:8f57713b2147 2 /* Copyright (C) 2012 mbed.org, MIT License
donatien 0:8f57713b2147 3 *
donatien 0:8f57713b2147 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
donatien 0:8f57713b2147 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
donatien 0:8f57713b2147 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
donatien 0:8f57713b2147 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
donatien 0:8f57713b2147 8 * furnished to do so, subject to the following conditions:
donatien 0:8f57713b2147 9 *
donatien 0:8f57713b2147 10 * The above copyright notice and this permission notice shall be included in all copies or
donatien 0:8f57713b2147 11 * substantial portions of the Software.
donatien 0:8f57713b2147 12 *
donatien 0:8f57713b2147 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
donatien 0:8f57713b2147 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
donatien 0:8f57713b2147 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
donatien 0:8f57713b2147 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
donatien 0:8f57713b2147 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
donatien 0:8f57713b2147 18 */
donatien 0:8f57713b2147 19
donatien 0:8f57713b2147 20 #ifndef LWIPINTERFACE_H_
donatien 0:8f57713b2147 21 #define LWIPINTERFACE_H_
donatien 0:8f57713b2147 22
donatien 0:8f57713b2147 23 #include "core/fwk.h"
donatien 0:8f57713b2147 24 #include "IPInterface.h"
donatien 0:8f57713b2147 25
donatien 0:8f57713b2147 26 #include "rtos.h"
donatien 0:8f57713b2147 27
donatien 0:8f57713b2147 28 /** LwIP-based network interface
donatien 0:8f57713b2147 29 *
donatien 0:8f57713b2147 30 */
donatien 0:8f57713b2147 31 class LwIPInterface : public IPInterface
donatien 0:8f57713b2147 32 {
donatien 0:8f57713b2147 33 public:
donatien 0:8f57713b2147 34 LwIPInterface();
donatien 0:8f57713b2147 35 virtual ~LwIPInterface();
donatien 0:8f57713b2147 36
donatien 0:8f57713b2147 37 int init(); //Init LwIP-specific stuff, create the right bindings, etc
donatien 0:8f57713b2147 38
donatien 0:8f57713b2147 39 private:
donatien 0:8f57713b2147 40 static void tcpipRdyCb(void* ctx); //Result of TCP/IP thread launch
donatien 0:8f57713b2147 41 Semaphore m_rdySphre;
donatien 0:8f57713b2147 42 };
donatien 0:8f57713b2147 43
donatien 0:8f57713b2147 44 #endif /* LWIPINTERFACE_H_ */