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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers errors.h Source File

errors.h

00001 /* errors.h */
00002 /* Copyright (C) 2012 mbed.org, MIT License
00003  *
00004  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
00005  * and associated documentation files (the "Software"), to deal in the Software without restriction,
00006  * including without limitation the rights to use, copy, modify, merge, publish, distribute,
00007  * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
00008  * furnished to do so, subject to the following conditions:
00009  *
00010  * The above copyright notice and this permission notice shall be included in all copies or
00011  * substantial portions of the Software.
00012  *
00013  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
00014  * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00015  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00016  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00017  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00018  */
00019  
00020 #ifndef ERRORS_H_
00021 #define ERRORS_H_
00022 
00023 /** \page Network-related errors */
00024 
00025 #define OK 0 //No error
00026 
00027 #define NET_FULL 1 //>All available resources are already used
00028 #define NET_EMPTY 2 //>No resource
00029 #define NET_NOTFOUND 3 //>Element cannot be found
00030 #define NET_INVALID 4 //>Invalid
00031 #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt)
00032 #define NET_TIMEOUT 6 //>Timeout
00033 #define NET_UNKNOWN 7 //>Unknown error
00034 #define NET_OVERFLOW 8 //>Overflow
00035 #define NET_PROCESSING 9 //>Command is processing
00036 #define NET_INTERRUPTED 10 //>Current operation has been interrupted
00037 #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr)
00038 #define NET_ABORT 12 //>Current operation must be aborted
00039 #define NET_DIFF 13 //>Items that should match are different
00040 #define NET_AUTH 14 //>Authentication failed
00041 #define NET_PROTOCOL 15 //>Protocol error
00042 #define NET_OOM 16 //>Out of memory
00043 #define NET_CONN 17 //>Connection error
00044 #define NET_CLOSED 18 //>Connection was closed by remote end
00045 #define NET_TOOSMALL 19 //>Buffer is too small
00046 #define HARDWARE_NO_RESPONSE 20 //>No response from the hardware module. Could not be physically connected or maybe no power?
00047 
00048 #endif /* ERRORS_H_ */