X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a553f2674865fa544d04ca7b8194e30c008644ae..696e8630782aa1707c23c2ce4b0e8394689835ac:/client/cmdlfhid.h?ds=sidebyside

diff --git a/client/cmdlfhid.h b/client/cmdlfhid.h
index 328f3b13..463be56f 100644
--- a/client/cmdlfhid.h
+++ b/client/cmdlfhid.h
@@ -11,10 +11,40 @@
 #ifndef CMDLFHID_H__
 #define CMDLFHID_H__
 
-int CmdLFHID(const char *Cmd);
+#include <stdint.h>
+#include <stdbool.h>
+
+// Structure for unpacked HID Prox tags.
+typedef struct {
+  // Format length, in bits.
+  uint8_t fmtLen;
+
+  // Facility code.
+  uint32_t fc;
+
+  // Card number.
+  uint64_t cardnum;
 
-int CmdHIDDemod(const char *Cmd);
-int CmdHIDDemodFSK(const char *Cmd);
+  // Parity validity.
+  //
+  // When used with pack_hid, this determines if we should calculate
+  // parity values for the ID.
+  //
+  // When used with unpack_hid, this indicates if we got valid parity
+  // values for the ID.
+  bool parityValid;
+} hid_info;
+
+bool pack_hid(/* out */ uint32_t *hi2, /* out */ uint32_t *hi, /* out */ uint32_t *lo, /* in */ const hid_info *info);
+bool unpack_hid(hid_info* out, uint32_t hi2, uint32_t hi, uint32_t lo);
+
+
+int CmdLFHID(const char *Cmd);
+int CmdFSKdemodHID(const char *Cmd);
+int CmdHIDReadDemod(const char *Cmd);
 int CmdHIDSim(const char *Cmd);
+int CmdHIDClone(const char *Cmd);
+int CmdHIDPack(const char *Cmd);
+int CmdHIDUnpack(const char *Cmd);
 
 #endif