mifareultag.h

Go to the documentation of this file.
00001 
00024 #ifndef _LIBNFC_MIFARE_UL_TAG_H_
00025 #define _LIBNFC_MIFARE_UL_TAG_H_
00026 
00027 typedef struct {
00028   byte_t sn0[3];
00029   byte_t btBCC0;
00030   byte_t sn1[4];
00031   byte_t btBCC1;
00032   byte_t internal;
00033   byte_t lock[2];
00034   byte_t otp[4];
00035 } mifareul_block_manufacturer;
00036 
00037 typedef struct {
00038   byte_t abtData[16];
00039 } mifareul_block_data;
00040 
00041 typedef union {
00042   mifareul_block_manufacturer mbm;
00043   mifareul_block_data mbd;
00044 } mifareul_block;
00045 
00046 typedef struct {
00047   mifareul_block amb[4];
00048 } mifareul_tag;
00049 
00050 #endif // _LIBNFC_MIFARE_UL_TAG_H_