summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/librfid/rfid_layer2_iso14443a.h2
-rw-r--r--include/librfid/rfid_protocol.h1
-rw-r--r--include/librfid/rfid_protocol_mifare_classic.h4
3 files changed, 7 insertions, 0 deletions
diff --git a/include/librfid/rfid_layer2_iso14443a.h b/include/librfid/rfid_layer2_iso14443a.h
index 283e6b6..b9ef954 100644
--- a/include/librfid/rfid_layer2_iso14443a.h
+++ b/include/librfid/rfid_layer2_iso14443a.h
@@ -4,6 +4,7 @@
enum rfid_14443a_opt {
RFID_OPT_14443A_SPEED_RX = 0x00010001,
RFID_OPT_14443A_SPEED_TX = 0x00010002,
+ RFID_OPT_14443A_ATQA = 0x00010003,
};
enum rfid_14443_opt_speed {
@@ -56,6 +57,7 @@ struct iso14443a_handle {
unsigned int state;
unsigned int level;
unsigned int tcl_capable;
+ struct iso14443a_atqa atqa;
};
enum iso14443a_level {
diff --git a/include/librfid/rfid_protocol.h b/include/librfid/rfid_protocol.h
index fd649ef..06f704f 100644
--- a/include/librfid/rfid_protocol.h
+++ b/include/librfid/rfid_protocol.h
@@ -45,6 +45,7 @@ enum rfid_protocol_id {
enum rfid_protocol_opt {
RFID_OPT_PROTO_ID,
+ RFID_OPT_PROTO_SIZE = 0x10000001,
};
#ifdef __LIBRFID__
diff --git a/include/librfid/rfid_protocol_mifare_classic.h b/include/librfid/rfid_protocol_mifare_classic.h
index 99c447d..b20a028 100644
--- a/include/librfid/rfid_protocol_mifare_classic.h
+++ b/include/librfid/rfid_protocol_mifare_classic.h
@@ -17,6 +17,10 @@
#define RFID_CMD_MIFARE_AUTH1A 0x60
#define RFID_CMD_MIFARE_AUTH1B 0x61
+enum rfid_proto_mfcl_opt {
+ RFID_OPT_P_MFCL_SIZE = 0x10000001,
+};
+
#ifdef __LIBRFID__
extern const struct rfid_protocol rfid_protocol_mfcl;
personal git repositories of Harald Welte. Your mileage may vary