Inform user if target UID can be emulated

New error: ETGUIDNOTSUP raised when UID is not 4 bytes long or does not start with 0x08 (Security restriction present in the NXP PN53x chips)
This commit is contained in:
Romuald Conty 2011-01-07 16:15:18 +00:00
parent 03963ef535
commit 0f8c23bddd
3 changed files with 24 additions and 14 deletions

View file

@ -128,7 +128,7 @@ extern "C" {
#define EDEPUNKCMD 0x12
#define EINVRXFRAM 0x13
#define EMFAUTH 0x14
#define ENSECNOTSUPP 0x18 // PN533
#define ENSECNOTSUPP 0x18 // PN533 only
#define EBCC 0x23
#define EDEPINVSTATE 0x25
#define EOPNOTALL 0x26
@ -140,10 +140,13 @@ extern "C" {
#define EOVCURRENT 0x2d
#define ENAD 0x2e
/* Software level errors */
#define ETGUIDNOTSUP 0x0100 /* Target UID not supported */
/* Common device-level errors */
# define DEIO 0x1000/* Input/output error */
# define DEINVAL 0x2000/* Invalid argument */
# define DETIMEOUT 0x3000/* Operation timeout */
#define DEIO 0x1000 /* Input/output error */
#define DEINVAL 0x2000 /* Invalid argument */
#define DETIMEOUT 0x3000 /* Operation timeout */
# ifdef __cplusplus
}