Merge pull request #2654 from Antiklesys/master
[RRG-proxmark3.git] / client / src / cmdhftexkom.h
blob079a2e4fbed91fdd91d1c9e1f4781774f4916356
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 // High frequency proximity cards from TEXCOM commands
17 //-----------------------------------------------------------------------------
19 #ifndef CMDHFTEXCOM_H__
20 #define CMDHFTEXCOM_H__
22 #include "common.h"
23 #include "pm3_cmd.h"
25 enum TK17Bits {
26 TK17WrongBit,
27 TK17Bit00,
28 TK17Bit01,
29 TK17Bit10,
30 TK17Bit11
33 enum TexkomModulation {
34 TexkomModError,
35 TexkomModTK13,
36 TexkomModTK15,
37 TexkomModTK17
40 typedef struct {
41 uint8_t tcode[8];
42 uint8_t rtcode[8];
43 uint8_t tagtype;
44 } PACKED texkom_card_select_t;
47 int CmdHFTexkom(const char *Cmd);
48 int read_texkom_uid(bool loop, bool verbose);
49 #endif