added PACKED attribute for structures and reorganize include folder

This commit is contained in:
merlokk 2019-07-16 14:50:38 +03:00
commit 20d13d5509
18 changed files with 204 additions and 183 deletions

View file

@ -60,7 +60,7 @@ local function parse14443a(data)
uint8_t sak;
uint8_t ats_len;
uint8_t ats[256];
} __attribute__((__packed__)) iso14a_card_select_t;
} PACKED iso14a_card_select_t;
--]]
local count, uid, uidlen, atqa, sak, ats_len, ats = bin.unpack('H10CH2CCH', data)

View file

@ -39,7 +39,7 @@ local function parse1443b(data)
uint8_t atqb[7];
uint8_t chipid;
uint8_t cid;
} __attribute__((__packed__)) iso14b_card_select_t;
} PACKED iso14b_card_select_t;
--]]