iccard/mifare.h: Add MIFARE IC card definitions

This commit is contained in:
Tau 2019-10-19 15:50:07 -04:00
parent a09843cbd6
commit 87af39a269
2 changed files with 16 additions and 0 deletions

View File

@ -9,5 +9,6 @@ iccard_lib = static_library(
sources : [
'felica.c',
'felica.h',
'mifare.h',
],
)

15
iccard/mifare.h Normal file
View File

@ -0,0 +1,15 @@
#pragma once
#include <stdint.h>
struct mifare_block {
uint8_t bytes[16];
};
struct mifare_sector {
struct mifare_block blocks[4];
};
struct mifare {
struct mifare_sector sectors[16];
};