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:
69:9b475f458fbc
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 /* errors.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 ERRORS_H_
donatien 16:02db4f537955 21 #define ERRORS_H_
donatien 16:02db4f537955 22
donatien 16:02db4f537955 23 /** \page Network-related errors */
donatien 16:02db4f537955 24
donatien 16:02db4f537955 25 #define OK 0 //No error
donatien 16:02db4f537955 26
donatien 16:02db4f537955 27 #define NET_FULL 1 //>All available resources are already used
donatien 16:02db4f537955 28 #define NET_EMPTY 2 //>No resource
donatien 16:02db4f537955 29 #define NET_NOTFOUND 3 //>Element cannot be found
donatien 16:02db4f537955 30 #define NET_INVALID 4 //>Invalid
donatien 16:02db4f537955 31 #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt)
donatien 16:02db4f537955 32 #define NET_TIMEOUT 6 //>Timeout
donatien 16:02db4f537955 33 #define NET_UNKNOWN 7 //>Unknown error
donatien 16:02db4f537955 34 #define NET_OVERFLOW 8 //>Overflow
donatien 16:02db4f537955 35 #define NET_PROCESSING 9 //>Command is processing
donatien 16:02db4f537955 36 #define NET_INTERRUPTED 10 //>Current operation has been interrupted
donatien 16:02db4f537955 37 #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr)
donatien 16:02db4f537955 38 #define NET_ABORT 12 //>Current operation must be aborted
donatien 16:02db4f537955 39 #define NET_DIFF 13 //>Items that should match are different
donatien 16:02db4f537955 40 #define NET_AUTH 14 //>Authentication failed
donatien 16:02db4f537955 41 #define NET_PROTOCOL 15 //>Protocol error
donatien 16:02db4f537955 42 #define NET_OOM 16 //>Out of memory
donatien 16:02db4f537955 43 #define NET_CONN 17 //>Connection error
donatien 16:02db4f537955 44 #define NET_CLOSED 18 //>Connection was closed by remote end
donatien 16:02db4f537955 45 #define NET_TOOSMALL 19 //>Buffer is too small
nherriot 69:9b475f458fbc 46 #define HARDWARE_NO_RESPONSE 20 //>No response from the hardware module. Could not be physically connected or maybe no power?
donatien 16:02db4f537955 47
donatien 16:02db4f537955 48 #endif /* ERRORS_H_ */