AppNearMe µNFC stack for the NXP PN532 chip License: You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Dependents:   IOT_sensor_nfc AppNearMe_MuNFC_PN532_Test p2p_nfc_test NFCMoodLamp ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers errors.h Source File

errors.h

00001 /*
00002     errors.h 
00003   Copyright (c) Donatien Garnier 2012
00004   donatien.garnier@appnearme.com
00005   http://www.appnearme.com/
00006 */
00007 
00008 #ifndef ERRORS_H_
00009 #define ERRORS_H_
00010 
00011 #define OK                    0   //No error
00012 
00013 #define ERR_UNKNOWN           1
00014 #define ERR_LENGTH            2
00015 #define ERR_NOT_FOUND         3
00016 #define ERR_UNSUPPORTED       4
00017 #define ERR_PARAMS            5
00018 #define ERR_BUFFER_TOO_SMALL  6
00019 #define ERR_TIMEOUT           7
00020 #define ERR_CRC               8
00021 #define ERR_NOCARD            9
00022 #define ERR_PARITY            10
00023 #define ERR_FIELD             11 //Lost RF field
00024 #define ERR_COLLISION         12
00025 #define ERR_WRONG_COMM        13
00026 #define ERR_PROTOCOL          14 //Protocol is not conformant
00027 #define ERR_BUSY              15
00028 #define ERR_CONTROLLER        16 //Controller failure
00029 
00030 #endif /* ERRORS_H_ */