mifaretag.h
Go to the documentation of this file.00001
00024 #ifndef _LIBNFC_MIFARE_TAG_H_
00025 #define _LIBNFC_MIFARE_TAG_H_
00026
00027 typedef struct {
00028 byte_t abtUID[4];
00029 byte_t btBCC;
00030 byte_t btUnknown;
00031 byte_t abtATQA[2];
00032 byte_t abtUnknown[8];
00033 } mifare_block_manufacturer;
00034
00035 typedef struct {
00036 byte_t abtData[16];
00037 } mifare_block_data;
00038
00039 typedef struct {
00040 byte_t abtKeyA[6];
00041 byte_t abtAccessBits[4];
00042 byte_t abtKeyB[6];
00043 } mifare_block_trailer;
00044
00045 typedef union {
00046 mifare_block_manufacturer mbm;
00047 mifare_block_data mbd;
00048 mifare_block_trailer mbt;
00049 } mifare_block;
00050
00051 typedef struct {
00052 mifare_block amb[256];
00053 } mifare_tag;
00054
00055 #endif // _LIBNFC_MIFARE_TAG_H_