Skip to content

Commit

Permalink
missing structs
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Oct 30, 2023
1 parent 75a70cb commit 0948824
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/mifare.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,33 @@ typedef struct {
uint8_t ats[256];
} PACKED iso14a_card_select_t;

typedef struct {
uint8_t uid[10];
uint8_t uidlen;
uint8_t atqa[2];
uint8_t sak;
uint8_t ats_len;
uint8_t ats[256];
uint8_t signature[32];
} PACKED iso14a_card_select_ev1_t;

typedef struct {
iso14a_card_select_t card_info;
uint8_t *dump;
uint16_t dumplen;
} iso14a_mf_extdump_t;

typedef struct {
union
{
iso14a_card_select_t mfc;
iso14a_card_select_ev1_t ev1;
} card;
uint16_t dumplen;
uint8_t *dump;
} iso14a_mf_dump_ev1_t;


typedef enum ISO14A_COMMAND {
ISO14A_CONNECT = (1 << 0),
ISO14A_NO_DISCONNECT = (1 << 1),
Expand Down

0 comments on commit 0948824

Please sign in to comment.