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

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!

Committer:
AppNearMe
Date:
Tue Jan 15 15:34:39 2013 +0000
Revision:
13:6f98851e025b
Parent:
10:2af578c635cd
renamed rtos.h to platform_rtos.h to prevent insludes mess

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AppNearMe 10:2af578c635cd 1 /*
AppNearMe 10:2af578c635cd 2 protocols.h
AppNearMe 10:2af578c635cd 3 Copyright (c) Donatien Garnier 2012
AppNearMe 10:2af578c635cd 4 donatien.garnier@appnearme.com
AppNearMe 10:2af578c635cd 5 http://www.appnearme.com/
AppNearMe 10:2af578c635cd 6 */
AppNearMe 10:2af578c635cd 7
AppNearMe 10:2af578c635cd 8 #ifndef PROTOCOLS_H_
AppNearMe 10:2af578c635cd 9 #define PROTOCOLS_H_
AppNearMe 10:2af578c635cd 10
AppNearMe 10:2af578c635cd 11 #ifdef __cplusplus
AppNearMe 10:2af578c635cd 12 extern "C" {
AppNearMe 10:2af578c635cd 13 #endif
AppNearMe 10:2af578c635cd 14
AppNearMe 10:2af578c635cd 15 typedef enum __RF_PROTOCOL
AppNearMe 10:2af578c635cd 16 {
AppNearMe 10:2af578c635cd 17 __RF_PROTOCOL_UNKNOWN = 0,
AppNearMe 10:2af578c635cd 18 //Reader
AppNearMe 10:2af578c635cd 19 RF_PROTOCOL_ISO_14443_A_READER,
AppNearMe 10:2af578c635cd 20 RF_PROTOCOL_ISO_14443_B_READER,
AppNearMe 10:2af578c635cd 21 RF_PROTOCOL_INNOVATRON_READER,
AppNearMe 10:2af578c635cd 22 RF_PROTOCOL_ISO_15693_READER,
AppNearMe 10:2af578c635cd 23 RF_PROTOCOL_FELICA_READER,
AppNearMe 10:2af578c635cd 24 //... add other protocols here
AppNearMe 10:2af578c635cd 25 RF_PROTOCOL_ISO_14443_A_TARGET,
AppNearMe 10:2af578c635cd 26 RF_PROTOCOL_ISO_14443_B_TARGET,
AppNearMe 10:2af578c635cd 27 RF_PROTOCOL_INNOVATRON_TARGET,
AppNearMe 10:2af578c635cd 28 RF_PROTOCOL_ISO_15693_TARGET,
AppNearMe 10:2af578c635cd 29 RF_PROTOCOL_FELICA_TARGET,
AppNearMe 10:2af578c635cd 30 RF_PROTOCOL_ISO_DEP_TARGET, //ISO 7816-3/4 over ISO 14443-4 link
AppNearMe 10:2af578c635cd 31 //... add other protocols here
AppNearMe 10:2af578c635cd 32
AppNearMe 10:2af578c635cd 33 } RF_PROTOCOL;
AppNearMe 10:2af578c635cd 34
AppNearMe 10:2af578c635cd 35 #define RF_PROTOCOL_IS_TARGET(x) ((x)>=RF_PROTOCOL_ISO_14443_A_TARGET)
AppNearMe 10:2af578c635cd 36 #define RF_PROTOCOL_IS_READER(x) (!RF_PROTOCOL_IS_TARGET(x))
AppNearMe 10:2af578c635cd 37
AppNearMe 10:2af578c635cd 38 typedef uint32_t RF_OPTION;
AppNearMe 10:2af578c635cd 39 //These options can be ORed
AppNearMe 10:2af578c635cd 40 #define RF_OPTION_NONE 0x00
AppNearMe 10:2af578c635cd 41 #define RF_OPTION_COMPUTE_CRC 0x01
AppNearMe 10:2af578c635cd 42 #define RF_OPTION_COMPUTE_PARITY 0x02
AppNearMe 10:2af578c635cd 43 #define RF_OPTION_CHECK_CRC 0x04
AppNearMe 10:2af578c635cd 44 #define RF_OPTION_CHECK_PARITY 0x08
AppNearMe 10:2af578c635cd 45
AppNearMe 10:2af578c635cd 46
AppNearMe 10:2af578c635cd 47 #ifdef __cplusplus
AppNearMe 10:2af578c635cd 48 }
AppNearMe 10:2af578c635cd 49 #endif
AppNearMe 10:2af578c635cd 50
AppNearMe 10:2af578c635cd 51 #endif /* PROTOCOLS_H_ */