forked from Hay1tsme/segatools
iccard/mifare.h: Add MIFARE IC card definitions
This commit is contained in:
parent
a09843cbd6
commit
87af39a269
@ -9,5 +9,6 @@ iccard_lib = static_library(
|
||||
sources : [
|
||||
'felica.c',
|
||||
'felica.h',
|
||||
'mifare.h',
|
||||
],
|
||||
)
|
||||
|
15
iccard/mifare.h
Normal file
15
iccard/mifare.h
Normal 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];
|
||||
};
|
Loading…
Reference in New Issue
Block a user