]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdlft55xx.h
e4eca17cb18cf1a941c2cbb428ba94b01c665234
[proxmark3-svn] / client / cmdlft55xx.h
1 //-----------------------------------------------------------------------------
2 //
3 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
4 // at your option, any later version. See the LICENSE.txt file for the text of
5 // the license.
6 //-----------------------------------------------------------------------------
7 // Low frequency T55xx commands
8 //-----------------------------------------------------------------------------
9
10 #ifndef CMDLFT55XX_H__
11 #define CMDLFT55XX_H__
12
13 typedef struct {
14 enum {
15 DEMOD_FSK = 0x01,
16 DEMOD_ASK = 0x02,
17 DEMOD_NZR = 0x03,
18 DEMOD_PSK = 0x04,
19 DEMOD_BI = 0x05,
20 } modulation;
21 bool inversed;
22 uint8_t offset;
23 uint32_t block0;
24 } t55xx_conf_block_t;
25
26
27 int CmdLFT55XX(const char *Cmd);
28 int CmdT55xxSetConfig(const char *Cmd);
29 int CmdT55xxReadBlock(const char *Cmd);
30 int CmdT55xxWriteBlock(const char *Cmd);
31 int CmdT55xxReadTrace(const char *Cmd);
32 int CmdT55xxInfo(const char *Cmd);
33 int CmdT55xxDetect(const char *Cmd);
34
35 char * GetBitRateStr(uint32_t id);
36 char * GetSaferStr(uint32_t id);
37 char * GetModulationStr( uint32_t id);
38 char * GetSelectedModulationStr( uint8_t id);
39 uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bitstream);
40 void printT55xxBlock(const char *demodStr);
41 void printConfiguration( t55xx_conf_block_t b);
42
43 void DecodeT55xxBlock();
44 bool tryDetectModulation();
45 bool test();
46 int special(const char *Cmd);
47 #endif
Impressum, Datenschutz