diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-01-06 13:40:55 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-01-06 13:40:55 +0000 |
commit | d7650b956f19c0bff282c81344c155f1c6018acb (patch) | |
tree | 74bec4fa01b95c334157d34214645cf0c533769b | |
parent | bbbc2b97f0e0f33515732a8af4fc2e5e0d415de2 (diff) |
Porting librfid on ARM, I got trouble using 14443B due to alignment issue. This
patch fix it. (Pierrick Hascoet <pierrick@hydromel.net>)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1954 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r-- | include/librfid/rfid_layer2_iso14443b.h | 10 |
1 files 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 { |