]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdlft55xx.h
ADD: printConfiguration method for a nice printout of the selected configuration.
[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 uint8_t modulation;
15 bool inversed;
16 uint32_t block0;
17 } t55xx_conf_block_t;
18
19
20 int CmdLFT55XX(const char *Cmd);
21 int CmdT55xxSetConfig(const char *Cmd);
22 int CmdT55xxReadBlock(const char *Cmd);
23 int CmdT55xxWriteBlock(const char *Cmd);
24 int CmdT55xxReadTrace(const char *Cmd);
25 int CmdT55xxInfo(const char *Cmd);
26 int CmdT55xxDetect(const char *Cmd);
27
28 char * GetBitRateStr(uint32_t id);
29 char * GetSaferStr(uint32_t id);
30 char * GetModulationStr( uint32_t id);
31 char * GetSelectedModulationStr( uint8_t id);
32 uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bitstream);
33 void printT55xxBlock(const char *demodStr);
34 void printConfiguration( t55xx_conf_block_t b);
35
36 void DecodeT55xxBlock();
37 bool tryDetectModulation();
38 bool test();
39 #endif
Impressum, Datenschutz