fix one too small
[RRG-proxmark3.git] / client / src / cmdlfhitaghts.h
blob7849d5f85b169a248717cb8d59c2d4b541399364
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Low frequency Hitag S support
17 //-----------------------------------------------------------------------------
19 #ifndef CMDLFHITAGS_H__
20 #define CMDLFHITAGS_H__
22 #include "common.h"
24 typedef struct {
25 enum {
26 HITAGS_MEMORY_32,
27 HITAGS_MEMORY_256,
28 HITAGS_MEMORY_2048,
29 HITAGS_MEMORY_UNKNOWN
30 } memory_type;
32 bool authentication;
34 enum {
35 HITAGS_CODING_MANCHESTER,
36 HITAGS_CODING_BIPHASE
37 } ttf_coding;
39 enum {
40 HITAGS_DR_4KBIT,
41 HITAGS_DR_8KBIT,
42 HITAGS_DR_2KBIT,
43 HITAGS_DR_2KBIT_PIGEON
44 } ttf_data_rate;
46 enum {
47 HITAGS_TTF_DISABLED,
48 HITAGS_TTF_PAGE45,
49 HITAGS_TTF_PAGE4567,
50 HITAGS_TTF_PAGE4
51 } ttf_mode;
53 bool lock_config;
54 bool lock_key;
55 } hitags_config_t;
57 int CmdLFHitagS(const char *Cmd);
59 hitags_config_t hitags_config_unpack(const uint8_t *config_bytes);
61 void hitags_config_pack(hitags_config_t config, uint8_t *out);
63 void hitags_config_print(hitags_config_t config);
65 #endif //CMDLFHITAGS_H__