enable debug output and disable poll for smartcard
[librfid] / include / librfid / rfid_layer2_iso14443a.h
index 87b6be0..d38fb2e 100644 (file)
@@ -4,6 +4,9 @@
 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 {
@@ -28,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
@@ -56,6 +67,8 @@ struct iso14443a_handle {
        unsigned int state;
        unsigned int level;
        unsigned int tcl_capable;
+       struct iso14443a_atqa atqa;
+       u_int8_t sak;
 };
 
 enum iso14443a_level {
@@ -84,7 +97,7 @@ enum iso14443a_state {
 
 
 #include <librfid/rfid_layer2.h>
-struct rfid_layer2 rfid_layer2_iso14443a;
+extern const struct rfid_layer2 rfid_layer2_iso14443a;
 
 #endif /* __LIBRFID__ */