Implementation of 3G USB Modem Huawei E372

Dependents:   PYRN

Committer:
clemounet
Date:
Tue Apr 14 13:27:07 2015 +0000
Revision:
2:61ac95f0af72
.up (working)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
clemounet 2:61ac95f0af72 1 /* errors.h */
clemounet 2:61ac95f0af72 2 /* Copyright (C) 2012 mbed.org, MIT License
clemounet 2:61ac95f0af72 3 *
clemounet 2:61ac95f0af72 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
clemounet 2:61ac95f0af72 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
clemounet 2:61ac95f0af72 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
clemounet 2:61ac95f0af72 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
clemounet 2:61ac95f0af72 8 * furnished to do so, subject to the following conditions:
clemounet 2:61ac95f0af72 9 *
clemounet 2:61ac95f0af72 10 * The above copyright notice and this permission notice shall be included in all copies or
clemounet 2:61ac95f0af72 11 * substantial portions of the Software.
clemounet 2:61ac95f0af72 12 *
clemounet 2:61ac95f0af72 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
clemounet 2:61ac95f0af72 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
clemounet 2:61ac95f0af72 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
clemounet 2:61ac95f0af72 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
clemounet 2:61ac95f0af72 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
clemounet 2:61ac95f0af72 18 */
clemounet 2:61ac95f0af72 19
clemounet 2:61ac95f0af72 20 #ifndef ERRORS_H_
clemounet 2:61ac95f0af72 21 #define ERRORS_H_
clemounet 2:61ac95f0af72 22
clemounet 2:61ac95f0af72 23 /** \page Network-related errors */
clemounet 2:61ac95f0af72 24
clemounet 2:61ac95f0af72 25 #define OK 0 //No error
clemounet 2:61ac95f0af72 26
clemounet 2:61ac95f0af72 27 #define NET_FULL 1 //>All available resources are already used
clemounet 2:61ac95f0af72 28 #define NET_EMPTY 2 //>No resource
clemounet 2:61ac95f0af72 29 #define NET_NOTFOUND 3 //>Element cannot be found
clemounet 2:61ac95f0af72 30 #define NET_INVALID 4 //>Invalid
clemounet 2:61ac95f0af72 31 #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt)
clemounet 2:61ac95f0af72 32 #define NET_TIMEOUT 6 //>Timeout
clemounet 2:61ac95f0af72 33 #define NET_UNKNOWN 7 //>Unknown error
clemounet 2:61ac95f0af72 34 #define NET_OVERFLOW 8 //>Overflow
clemounet 2:61ac95f0af72 35 #define NET_PROCESSING 9 //>Command is processing
clemounet 2:61ac95f0af72 36 #define NET_INTERRUPTED 10 //>Current operation has been interrupted
clemounet 2:61ac95f0af72 37 #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr)
clemounet 2:61ac95f0af72 38 #define NET_ABORT 12 //>Current operation must be aborted
clemounet 2:61ac95f0af72 39 #define NET_DIFF 13 //>Items that should match are different
clemounet 2:61ac95f0af72 40 #define NET_AUTH 14 //>Authentication failed
clemounet 2:61ac95f0af72 41 #define NET_PROTOCOL 15 //>Protocol error
clemounet 2:61ac95f0af72 42 #define NET_OOM 16 //>Out of memory
clemounet 2:61ac95f0af72 43 #define NET_CONN 17 //>Connection error
clemounet 2:61ac95f0af72 44 #define NET_CLOSED 18 //>Connection was closed by remote end
clemounet 2:61ac95f0af72 45 #define NET_TOOSMALL 19 //>Buffer is too small
clemounet 2:61ac95f0af72 46
clemounet 2:61ac95f0af72 47 #endif /* ERRORS_H_ */