API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Defines

Macros

#define TSMART_NFC_ERROR_TIME_OUT   0x01
 
#define TSMART_NFC_ERROR_CRC   0x02
 
#define TSMART_NFC_ERROR_PARITY   0x03
 
#define TSMART_NFC_ERROR_BIT_COUNT   0x04
 
#define TSMART_NFC_ERROR_FRAMING   0x05
 
#define TSMART_NFC_ERROR_COLLISION   0x06
 
#define TSMART_NFC_ERROR_COM_BUFFER   0x07
 
#define TSMART_NFC_ERROR_RF_OVERFLOW   0x09
 
#define TSMART_NFC_ERROR_RF_FIELD   0x0A
 
#define TSMART_NFC_ERROR_RF_PROTOCOL   0x0B
 
#define TSMART_NFC_ERROR_OVERHEATING   0x0D
 
#define TSMART_NFC_ERROR_INTERNAL_OVERFLOW   0x0E
 
#define TSMART_NFC_ERROR_INVALID_PARAMETER   0x10
 
#define TSMART_NFC_ERROR_DEP_PROTOCOL   0x12
 
#define TSMART_NFC_ERROR_DATA_FORMAT   0x13
 
#define TSMART_NFC_ERROR_AUTHENTICATION   0x14
 
#define TSMART_NFC_ERROR_UID   0x23
 
#define TSMART_NFC_ERROR_DEVICE_STATE   0x25
 
#define TSMART_NFC_ERROR_OPERATION   0x26
 
#define TSMART_NFC_ERROR_NOT_ACEPTED_CMD   0x27
 
#define TSMART_NFC_ERROR_RELEASED   0x29
 
#define TSMART_NFC_ERROR_ID   0x2A
 
#define TSMART_NFC_ERROR_ACTIVATED   0x2B
 
#define TSMART_NFC_ERROR_NFCID3   0x2C
 
#define TSMART_NFC_ERROR_OVER_CURRENT   0x2D
 
#define TSMART_NFC_ERROR_NAD   0x2E
 

Detailed Description

Macro Definition Documentation

#define TSMART_NFC_ERROR_ACTIVATED   0x2B

PN532 and ISO/IEC14443-3B only: the card previously activated has disappeared.

#define TSMART_NFC_ERROR_AUTHENTICATION   0x14

Mifare: Authentication error

#define TSMART_NFC_ERROR_BIT_COUNT   0x04

During an anti-collision/select operation (ISO/IEC14443-3 Type A and ISO/IEC18092 106 kbps passive mode), an erroneous Bit Count has been detected

#define TSMART_NFC_ERROR_COLLISION   0x06

An abnormal bit-collision has been detected during bit wise anti-collision at 106 kbps

#define TSMART_NFC_ERROR_COM_BUFFER   0x07

Communication buffer size insufficient

#define TSMART_NFC_ERROR_CRC   0x02

A CRC error has been detected by the CIU

#define TSMART_NFC_ERROR_DATA_FORMAT   0x13

DEP Protocol, Mifare or ISO/IEC14443-4: The data format does not match to the specification. Depending on the RF protocol used, it can be:

  • Bad length of RF received frame
  • Incorrect value of PCB or PFB
  • Invalid or unexpected RF received frame
  • NAD or DID incoherence
#define TSMART_NFC_ERROR_DEP_PROTOCOL   0x12

DEP Protocol: The PN532 configured in target mode does not support the command received from the initiator (the command received is not one of the following: ATR_REQ, WUP_REQ, PSL_REQ, DEP_REQ, DSL_REQ, RLS_REQ

#define TSMART_NFC_ERROR_DEVICE_STATE   0x25

DEP Protocol: Invalid device state, the system is in a state which does not allow the operation

#define TSMART_NFC_ERROR_FRAMING   0x05

Framing error during Mifare operation

#define TSMART_NFC_ERROR_ID   0x2A

PN532 and ISO/IEC14443-3B only: the ID of the card does not match, meaning that the expected card has been exchanged with another one.

#define TSMART_NFC_ERROR_INTERNAL_OVERFLOW   0x0E

Internal buffer overflow

#define TSMART_NFC_ERROR_INVALID_PARAMETER   0x10

Invalid parameter (range, format, …)

#define TSMART_NFC_ERROR_NAD   0x2E

NAD missing in DEP frame

#define TSMART_NFC_ERROR_NFCID3   0x2C

Mismatch between the NFCID3 initiator and the NFCID3 target in DEP 212/424 kbps passive.

#define TSMART_NFC_ERROR_NOT_ACEPTED_CMD   0x27

This command is not acceptable due to the current context of the PN532 (Initiator vs. Target, unknown target number, Target not in the good state, …)

#define TSMART_NFC_ERROR_OPERATION   0x26

Operation not allowed in this configuration (host controller interface)

#define TSMART_NFC_ERROR_OVER_CURRENT   0x2D

An over-current event has been detected

#define TSMART_NFC_ERROR_OVERHEATING   0x0D

Temperature error: the internal temperature sensor has detected overheating, and therefore has automatically switched off the antenna drivers

#define TSMART_NFC_ERROR_PARITY   0x03

A Parity error has been detected by the CIU

#define TSMART_NFC_ERROR_RELEASED   0x29

The PN532 configured as target has been released by its initiator

#define TSMART_NFC_ERROR_RF_FIELD   0x0A

In active communication mode, the RF field has not been switched on in time by the counterpart (as defined in NFCIP-1 standard)

#define TSMART_NFC_ERROR_RF_OVERFLOW   0x09

RF Buffer overflow has been detected by the CIU (bit BufferOvfl of the register CIU_Error)

#define TSMART_NFC_ERROR_RF_PROTOCOL   0x0B

RF Protocol error

#define TSMART_NFC_ERROR_TIME_OUT   0x01

Time Out, the target has not answered

#define TSMART_NFC_ERROR_UID   0x23

ISO/IEC14443-3: UID Check byte is wrong