From b06579e0d531b48cb2a9f58f51ba80687ac0e6a2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 30 Jan 2018 03:32:33 +0100 Subject: [PATCH] chg: 'hf felica reader' the felica_select_card struct got more properties --- include/mifare.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/include/mifare.h b/include/mifare.h index 6943518d8..a7b413b00 100644 --- a/include/mifare.h +++ b/include/mifare.h @@ -92,8 +92,31 @@ typedef struct { //----------------------------------------------------------------------------- // FeliCa //----------------------------------------------------------------------------- +// IDm = ID manufacturer +// mc = manufactureCode +// mc1 mc2 u1 u2 u3 u4 u5 u6 +// PMm = Product manufacturer +// icCode = +// ic1 = ROM +// ic2 = IC +// maximum response time = +// B3(request service) +// B4(request response) +// B5(authenticate) +// B6(read) +// B7(write) +// B8() + +// ServiceCode 2bytes (access-rights) +// FileSystem = 1 Block = 16 bytes typedef struct { - uint8_t uid[8]; + uint8_t IDm[8]; + uint8_t code[2]; + uint8_t uid[6]; + uint8_t PMm[8]; + uint8_t iccode[2]; + uint8_t mrt[6]; + uint8_t servicecode[2]; } __attribute__((__packed__)) felica_card_select_t; typedef enum FELICA_COMMAND {