]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/hidcardformats.h
8ff887f7af7fe1f28a24b3d36a299040b4a97f8c
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2018 grauerfuchs
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // HID card format packing/unpacking routines
9 //-----------------------------------------------------------------------------
11 #ifndef HIDCARDFORMATS_H__
12 #define HIDCARDFORMATS_H__
16 #include "hidcardformatutils.h"
18 // Structure for defined HID card formats available for packing/unpacking
19 typedef struct hidcardformat_s
{
21 bool (*Pack
)(/*in*/hidproxcard_t
* card
, /*out*/hidproxmessage_t
* packed
);
22 bool (*Unpack
)(/*in*/hidproxmessage_t
* packed
, /*out*/hidproxcard_t
* card
);
26 void HIDListFormats();
27 int HIDFindCardFormat(const char *format
);
28 hidcardformat_t
HIDGetCardFormat(int idx
);
29 bool HIDPack(/* in */int FormatIndex
, /* in */hidproxcard_t
* card
, /* out */hidproxmessage_t
* packed
);
30 bool HIDTryUnpack(/* in */hidproxmessage_t
* packed
);