X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab20cc35b7cef4e69a4e74f2b59d9e9b7fe2d022..c0e7527dddf79e1d2758eb4dd55a6b0574fe0a9a:/client/cmdlfhid.h?ds=inline diff --git a/client/cmdlfhid.h b/client/cmdlfhid.h index e53a95c6..353805db 100644 --- a/client/cmdlfhid.h +++ b/client/cmdlfhid.h @@ -14,36 +14,14 @@ #include #include -// Structure for unpacked "short" (<38 bits) HID Prox tags. -typedef struct { - // Format length, in bits. - uint8_t fmtLen; - - // Facility code. - uint32_t fc; - - // Card number. - uint32_t cardnum; - - // Parity validity. - // - // When used with pack_short_hid, this determines if we should calculate - // parity values for the ID. - // - // When used with unpack_short_hid, this indicates if we got valid parity - // values for the ID. - bool parityValid; -} short_hid_info; - -bool pack_short_hid(/* out */ uint32_t *hi, /* out */ uint32_t *lo, /* in */ const short_hid_info *info); -bool unpack_short_hid(short_hid_info* out, 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); - +int CmdHIDDecode(const char *Cmd); +int CmdHIDEncode(const char *Cmd); +int CmdHIDWrite(const char *Cmd); +// This is used by the Paradox code +int hid_hexstring_to_int96(/* out */ uint32_t* hi2,/* out */ uint32_t* hi, /* out */ uint32_t* lo, const char* str); #endif