]> git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdlft55xx.h
Merge branch 'master' of https://github.com/Proxmark/proxmark3
[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_NRZ = 0x00,
16 DEMOD_PSK1 = 0x01,
17 DEMOD_PSK2 = 0x02,
18 DEMOD_PSK3 = 0x03,
19 DEMOD_FSK = 0x04,
20 DEMOD_ASK = 0x08,
21 DEMOD_BI = 0x16,
22 } modulation;
23 bool inversed;
24 uint8_t offset;
25 uint32_t block0;
26 } t55xx_conf_block_t;
27
28 int CmdLFT55XX(const char *Cmd);
29 int CmdT55xxSetConfig(const char *Cmd);
30 int CmdT55xxReadBlock(const char *Cmd);
31 int CmdT55xxWriteBlock(const char *Cmd);
32 int CmdT55xxReadTrace(const char *Cmd);
33 int CmdT55xxInfo(const char *Cmd);
34 int CmdT55xxDetect(const char *Cmd);
35
36 char * GetBitRateStr(uint32_t id);
37 char * GetSaferStr(uint32_t id);
38 char * GetModulationStr( uint32_t id);
39 char * GetModelStrFromCID(uint32_t cid);
40 char * GetSelectedModulationStr( uint8_t id);
41 uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bitstream);
42 void printT55xxBlock(const char *demodStr);
43 void printConfiguration( t55xx_conf_block_t b);
44
45 void DecodeT55xxBlock();
46 bool tryDetectModulation();
47 bool test(uint8_t mode, uint8_t *offset);
48 int special(const char *Cmd);
49 #endif
Impressum, Datenschutz