Vodafone K3770/K3772-Z modems driver & networking library

Dependencies:   Socket USBHostWANDongle lwip-sys lwip

Dependents:   VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more

Fork of VodafoneUSBModem_bleedingedge by Donatien Garnier

This is the driver for the Vodafone K3700 & K3772-Z Dongles:

K3770

More details and instructions can be found here.

Committer:
ashleymills
Date:
Fri Apr 25 13:33:55 2014 +0000
Revision:
95:84f01d280c9b
Parent:
16:02db4f537955
Updated lwip to latest mbed version.; Removed useless debug function and messages.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 16:02db4f537955 1 /* fwk.h */
donatien 16:02db4f537955 2 /* Copyright (C) 2012 mbed.org, MIT License
donatien 16:02db4f537955 3 *
donatien 16:02db4f537955 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
donatien 16:02db4f537955 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
donatien 16:02db4f537955 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
donatien 16:02db4f537955 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
donatien 16:02db4f537955 8 * furnished to do so, subject to the following conditions:
donatien 16:02db4f537955 9 *
donatien 16:02db4f537955 10 * The above copyright notice and this permission notice shall be included in all copies or
donatien 16:02db4f537955 11 * substantial portions of the Software.
donatien 16:02db4f537955 12 *
donatien 16:02db4f537955 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
donatien 16:02db4f537955 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
donatien 16:02db4f537955 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
donatien 16:02db4f537955 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
donatien 16:02db4f537955 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
donatien 16:02db4f537955 18 */
donatien 16:02db4f537955 19
donatien 16:02db4f537955 20 #ifndef FWK_H_
donatien 16:02db4f537955 21 #define FWK_H_
donatien 16:02db4f537955 22
donatien 16:02db4f537955 23 #include "config.h"
donatien 16:02db4f537955 24
donatien 16:02db4f537955 25 #include "string.h"
donatien 16:02db4f537955 26 //using namespace std;
donatien 16:02db4f537955 27
donatien 16:02db4f537955 28 #include "stdint.h"
donatien 16:02db4f537955 29 typedef unsigned int size_t;
donatien 16:02db4f537955 30
donatien 16:02db4f537955 31 #ifndef __cplusplus
donatien 16:02db4f537955 32 //boolean type compatibility
donatien 16:02db4f537955 33 typedef byte bool;
donatien 16:02db4f537955 34 #define true 1
donatien 16:02db4f537955 35 #define false 0
donatien 16:02db4f537955 36 #endif
donatien 16:02db4f537955 37
donatien 16:02db4f537955 38 #ifndef NULL
donatien 16:02db4f537955 39 #define NULL ((void*)0)
donatien 16:02db4f537955 40 #endif
donatien 16:02db4f537955 41
donatien 16:02db4f537955 42 #define CR '\x0D'
donatien 16:02db4f537955 43 #define LF '\x0A'
donatien 16:02db4f537955 44 #define GD '\x3E'
donatien 16:02db4f537955 45 #define BRK '\x1A'
donatien 16:02db4f537955 46
donatien 16:02db4f537955 47 //Custom utility classes
donatien 16:02db4f537955 48 #include "IOStream.h"
donatien 16:02db4f537955 49 //#include "String.h"
donatien 16:02db4f537955 50
donatien 16:02db4f537955 51 //Error codes
donatien 16:02db4f537955 52 #include "errors.h"
donatien 16:02db4f537955 53
donatien 16:02db4f537955 54 //Debug
donatien 16:02db4f537955 55 #include "dbg.h"
donatien 16:02db4f537955 56
donatien 16:02db4f537955 57 //Utility macros
donatien 16:02db4f537955 58 #define MIN(x,y) (((x)<(y))?(x):(y))
donatien 16:02db4f537955 59 #define MAX(x,y) (((x)>(y))?(x):(y))
donatien 16:02db4f537955 60
donatien 16:02db4f537955 61 #endif /* FWK_H_ */