diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-08-12 20:41:40 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-08-12 20:41:40 +0800 |
commit | 590c3fb3328a3afdae28051e6662c4d242f85d0f (patch) | |
tree | d48ee75e88869e197272ef6899c1b1359c2874de /easytool/mifare_classic.h | |
parent | a1111c14e99e17688c237ce2041080fa765425e3 (diff) |
Separate the mifare classic related stuff out from the Easycard
Diffstat (limited to 'easytool/mifare_classic.h')
-rw-r--r-- | easytool/mifare_classic.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/easytool/mifare_classic.h b/easytool/mifare_classic.h new file mode 100644 index 0000000..c6ba524 --- /dev/null +++ b/easytool/mifare_classic.h @@ -0,0 +1,16 @@ +#ifndef EASY_MFCL_H +#define EASY_MFCL_H + +#include <stdint.h> + +#define ABP_C1 0x04 +#define ABP_C2 0x02 +#define ABP_C3 0x01 + +struct acc_bits_parsed { + uint8_t block[4]; +}; + +void mfcl_parse_acc_bits(struct acc_bits_parsed *abp, uint8_t *acc_bits); + +#endif |