mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-24 10:47:26 -08:00
The new handler accepts multiple formats of the same length. Because of this, the existing pack/unpack commands are unsupported and have been removed and replaced with 'lf hid encode' and 'lf hid decode'. The decode command will test a packed Prox ID against all programmed formats and return results for all matching formats. The encode command takes the parameter of format name instead of bit length (as per the old pack command). Additionally, an 'lf hid write' command has been added as a single-command combination of encode and clone. To support easier addition of new formats, a library for handling card fields has been added. This will allow direct access to the card bits, to linear fields, and to non-linear (jumping) fields in a single line of code without having to resort to managing bit positions or masks on the underlying data. A number of new formats have been added as working examples of the new support functions.
26 lines
869 B
C
26 lines
869 B
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// Low frequency HID commands
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef CMDLFHID_H__
|
|
#define CMDLFHID_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
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 CmdHIDDecode(const char *Cmd);
|
|
int CmdHIDEncode(const char *Cmd);
|
|
int CmdHIDWrite(const char *Cmd);
|
|
#endif
|