From d7650b956f19c0bff282c81344c155f1c6018acb Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 6 Jan 2007 13:40:55 +0000 Subject: Porting librfid on ARM, I got trouble using 14443B due to alignment issue. This patch fix it. (Pierrick Hascoet ) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1954 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_layer2_iso14443b.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/librfid/rfid_layer2_iso14443b.h b/include/librfid/rfid_layer2_iso14443b.h index 7d2cb29..89999c6 100644 --- a/include/librfid/rfid_layer2_iso14443b.h +++ b/include/librfid/rfid_layer2_iso14443b.h @@ -25,7 +25,7 @@ struct iso14443b_atqb { unsigned char fo:2, adc:2, fwi:4; - } protocol_info; + } __attribute__ ((packed)) protocol_info; } __attribute__ ((packed)); struct iso14443b_attrib_hdr { @@ -37,20 +37,20 @@ struct iso14443b_attrib_hdr { eof:1, min_tr1:2, min_tr0:2; - } param1; + } __attribute__ ((packed)) param1; struct { unsigned char fsdi:4, spd_out:2, spd_in:2; - } param2; + } __attribute__ ((packed)) param2; struct { unsigned char protocol_type:4, rfu:4; - } param3; + } __attribute__ ((packed)) param3; struct { unsigned char cid:4, rfu:4; - } param4; + } __attribute__ ((packed)) param4; } __attribute__ ((packed)); struct iso14443b_handle { -- cgit v1.2.3