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!

PN532/munfc/drv/protocols.h

Committer:
AppNearMe
Date:
2013-01-15
Revision:
13:6f98851e025b
Parent:
10:2af578c635cd

File content as of revision 13:6f98851e025b:

/*
  protocols.h
  Copyright (c) Donatien Garnier 2012
  donatien.garnier@appnearme.com
  http://www.appnearme.com/
*/

#ifndef PROTOCOLS_H_
#define PROTOCOLS_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef enum __RF_PROTOCOL
{
  __RF_PROTOCOL_UNKNOWN = 0,
  //Reader
  RF_PROTOCOL_ISO_14443_A_READER,
  RF_PROTOCOL_ISO_14443_B_READER,
  RF_PROTOCOL_INNOVATRON_READER,
  RF_PROTOCOL_ISO_15693_READER,
  RF_PROTOCOL_FELICA_READER,
  //... add other protocols here
  RF_PROTOCOL_ISO_14443_A_TARGET,
  RF_PROTOCOL_ISO_14443_B_TARGET,
  RF_PROTOCOL_INNOVATRON_TARGET,
  RF_PROTOCOL_ISO_15693_TARGET,
  RF_PROTOCOL_FELICA_TARGET,
  RF_PROTOCOL_ISO_DEP_TARGET, //ISO 7816-3/4 over ISO 14443-4 link
  //... add other protocols here

} RF_PROTOCOL;

#define RF_PROTOCOL_IS_TARGET(x) ((x)>=RF_PROTOCOL_ISO_14443_A_TARGET)
#define RF_PROTOCOL_IS_READER(x) (!RF_PROTOCOL_IS_TARGET(x))

typedef uint32_t RF_OPTION;
//These options can be ORed
#define RF_OPTION_NONE            0x00
#define RF_OPTION_COMPUTE_CRC     0x01
#define RF_OPTION_COMPUTE_PARITY  0x02
#define RF_OPTION_CHECK_CRC       0x04
#define RF_OPTION_CHECK_PARITY    0x08


#ifdef __cplusplus
}
#endif

#endif /* PROTOCOLS_H_ */