]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/cmdlft55xx.h
2ae3e69b571f0b11cd8d927fbec2dedac83080ac
1 //-----------------------------------------------------------------------------
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
6 //-----------------------------------------------------------------------------
7 // Low frequency T55xx commands
8 //-----------------------------------------------------------------------------
10 #ifndef CMDLFT55XX_H__
11 #define CMDLFT55XX_H__
50 DEMOD_FSK
= 0xF0, //generic FSK (auto detect FCs)
72 t55xx_conf_block_t
Get_t55xx_Config(void);
73 void Set_t55xx_Config(t55xx_conf_block_t conf
);
75 extern int CmdLFT55XX(const char *Cmd
);
76 extern int CmdT55xxBruteForce(const char *Cmd
);
77 extern int CmdT55xxSetConfig(const char *Cmd
);
78 extern int CmdT55xxReadBlock(const char *Cmd
);
79 extern int CmdT55xxWriteBlock(const char *Cmd
);
80 extern int CmdT55xxReadTrace(const char *Cmd
);
81 extern int CmdT55xxInfo(const char *Cmd
);
82 extern int CmdT55xxDetect(const char *Cmd
);
83 extern int CmdResetRead(const char *Cmd
);
84 extern int CmdT55xxWipe(const char *Cmd
);
86 char * GetBitRateStr(uint32_t id
, bool xmode
);
87 char * GetSaferStr(uint32_t id
);
88 char * GetModulationStr( uint32_t id
);
89 char * GetModelStrFromCID(uint32_t cid
);
90 char * GetSelectedModulationStr( uint8_t id
);
91 uint32_t PackBits(uint8_t start
, uint8_t len
, uint8_t *bitstream
);
92 void printT5xxHeader(uint8_t page
);
93 void printT55xxBlock(const char *demodStr
);
94 int printConfiguration( t55xx_conf_block_t b
);
96 bool DecodeT55xxBlock(void);
97 bool tryDetectModulation(void);
98 extern bool tryDetectP1(bool getData
);
99 bool test(uint8_t mode
, uint8_t *offset
, int *fndBitRate
, uint8_t clk
, bool *Q5
);
100 int special(const char *Cmd
);
101 int AquireData( uint8_t page
, uint8_t block
, bool pwdmode
, uint32_t password
);
103 void printT55x7Trace( t55x7_tracedata_t data
, uint8_t repeat
);
104 void printT5555Trace( t5555_tracedata_t data
, uint8_t repeat
);