]> cvs.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/cmdlft55xx.h
CHG: now with enums :)
[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_FSK = 0x01, \r
16 DEMOD_ASK = 0x02,\r
17 DEMOD_NZR = 0x03, \r
18 DEMOD_PSK = 0x04,\r
19 DEMOD_BI = 0x05,\r
20 } modulation;\r
21 bool inversed;\r
22 uint32_t block0;\r
23} t55xx_conf_block_t;\r
24\r
25\r
26int CmdLFT55XX(const char *Cmd);\r
27int CmdT55xxSetConfig(const char *Cmd);\r
28int CmdT55xxReadBlock(const char *Cmd);\r
29int CmdT55xxWriteBlock(const char *Cmd);\r
30int CmdT55xxReadTrace(const char *Cmd);\r
31int CmdT55xxInfo(const char *Cmd);\r
32int CmdT55xxDetect(const char *Cmd);\r
33\r
34char * GetBitRateStr(uint32_t id);\r
35char * GetSaferStr(uint32_t id);\r
36char * GetModulationStr( uint32_t id);\r
37char * GetSelectedModulationStr( uint8_t id);\r
38uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bitstream);\r
39void printT55xxBlock(const char *demodStr);\r
40void printConfiguration( t55xx_conf_block_t b);\r
41\r
42void DecodeT55xxBlock();\r
43bool tryDetectModulation();\r
44bool test();\r
45#endif\r
Impressum, Datenschutz