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