enable debug output and disable poll for smartcard
[librfid] / include / librfid / rfid_layer2_iso14443a.h
index b9ef954..d38fb2e 100644 (file)
@@ -5,6 +5,8 @@ enum rfid_14443a_opt {
        RFID_OPT_14443A_SPEED_RX        = 0x00010001,
        RFID_OPT_14443A_SPEED_TX        = 0x00010002,
        RFID_OPT_14443A_ATQA            = 0x00010003,
+       RFID_OPT_14443A_WUPA            = 0x00010004,
+       RFID_OPT_14443A_SAK             = 0x00010005,
 };
 
 enum rfid_14443_opt_speed {
@@ -29,11 +31,19 @@ enum iso14443a_sf_cmd {
 };
 
 struct iso14443a_atqa {
+#ifndef RFID_BIG_ENDIAN_BITFIELD
        u_int8_t bf_anticol:5,
                 rfu1:1,
                 uid_size:2;
        u_int8_t proprietary:4,
                 rfu2:4;
+#else
+       u_int8_t uid_size:2,
+                rfu1:1,
+                bf_anticol:5;
+       u_int8_t rfu2:4,
+                proprietary:4;
+#endif
 } __attribute__((packed));
 
 #define ISO14443A_HLTA         0x5000
@@ -58,6 +68,7 @@ struct iso14443a_handle {
        unsigned int level;
        unsigned int tcl_capable;
        struct iso14443a_atqa atqa;
+       u_int8_t sak;
 };
 
 enum iso14443a_level {