Adapted to LoRa Semtech + Nucleo

Dependencies:   LMiC SX1276Lib cantcoap lwip mbed-rtos mbed

Fork of LoRaWAN-lmic-app by Pascal Nysten

Committer:
pnysten
Date:
Mon Dec 14 10:51:40 2015 +0000
Revision:
7:f1521b0ecf08
Parent:
4:5e274bf85bf0
New version

Who changed what in which revision?

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