]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/prox.h
aeb6dfea3ec5699090d5866a2956608f0d24027a
4 #include "../include/usb_cmd.h"
7 void ReceiveCommand(UsbCommand
*c
);
8 BOOL
ReceiveCommandPoll(UsbCommand
*c
);
9 void SendCommand(UsbCommand
*c
, BOOL wantAck
);
13 void HideGraphWindow(void);
14 void ShowGraphWindow(void);
15 void RepaintGraphWindow(void);
16 void PrintToScrollback(char *fmt
, ...);
17 #define MAX_GRAPH_TRACE_LEN (1024*128)
18 extern int GraphBuffer
[MAX_GRAPH_TRACE_LEN
];
19 extern int GraphTraceLen
;
20 extern double CursorScaleFactor
;
21 extern int PlotGridX
, PlotGridY
;
22 extern int CommandFinished
;
26 static void CmdBuffClear(char *str
);
27 static void GetFromBigBuf(BYTE
*dest
, int bytes
);
28 static void CmdReset(char *str
);
29 static void CmdQuit(char *str
);
30 static void CmdEM410xread(char *str
);
31 static void CmdEM410xwatch(char *str
);
32 static void ChkBitstream(char *str
);
33 int GetClock(char *str
, int peak
);
34 static void CmdHIDdemodFSK(char *str
);
35 static void Cmdmanchestermod(char *str
);
36 static void CmdTune(char *str
);
37 static void CmdHi15read(char *str
);
38 static void CmdHi14read(char *str
);
39 static void CmdSri512read(char *str
);
40 static void CmdHi14areader(char *str
);
41 static void CmdHi15reader(char *str
);
42 static void CmdHi15tag(char *str
);
43 static void CmdHi14read_sim(char *str
);
44 static void CmdHi14readt(char *str
);
45 static void CmdHisimlisten(char *str
);
46 static void CmdReadmem(char *str
);
47 static void CmdHi14sim(char *str
);
48 static void CmdHi14asim(char *str
);
49 static void CmdHi14snoop(char *str
);
50 static void CmdHi14asnoop(char *str
);
51 static void CmdFPGAOff(char *str
);
52 int CmdClearGraph(int redraw
);
53 static void CmdAppendGraph(int redraw
, int clock
, int bit
);
54 static void CmdEM410xsim(char *str
);
55 static void CmdLosim(char *str
);
56 static void CmdLoCommandRead(char *str
);
57 static void CmdLoread(char *str
);
58 static void CmdLosamples(char *str
);
59 static void CmdBitsamples(char *str
);
60 static void CmdHisamples(char *str
);
61 static int CmdHisamplest(char *str
, int nrlow
);
62 static void CmdHexsamples(char *str
);
63 static void CmdHisampless(char *str
);
64 static WORD
Iso15693Crc(BYTE
*v
, int n
);
65 static void CmdHi14bdemod(char *str
);
66 static void CmdHi14list(char *str
);
67 static void CmdHi14alist(char *str
);
68 static void CmdHi15demod(char *str
);
69 static void CmdTiread(char *str
);
70 static void CmdTibits(char *str
);
71 static void CmdTidemod(char *cmdline
);
72 static void CmdNorm(char *str
);
73 static void CmdDec(char *str
);
74 static void CmdHpf(char *str
);
75 static void CmdZerocrossings(char *str
);
76 static void CmdLtrim(char *str
);
77 static void CmdAutoCorr(char *str
);
78 static void CmdVchdemod(char *str
);
79 static void CmdIndalademod(char *str
);
80 static void CmdFlexdemod(char *str
);
81 static void Cmdaskdemod(char *str
);
82 static void Cmddetectclockrate(char *str
);
83 int detectclock(int peak
);
84 static void Cmdbitstream(char *str
);
85 static void Cmdmanchesterdemod(char *str
);
86 static void CmdHiddemod(char *str
);
87 static void CmdPlot(char *str
);
88 static void CmdHide(char *str
);
89 static void CmdScale(char *str
);
90 static void CmdSave(char *str
);
91 static void CmdLoad(char *str
);
92 static void CmdHIDsimTAG(char *str
);
93 static void CmdLcdReset(char *str
);
94 static void CmdLcd(char *str
);
95 static void CmdTest(char *str
);
96 static void CmdSetDivisor(char *str
);
97 static void CmdSweepLF(char *str
);
98 void CommandReceived(char *cmd
);
99 void UsbCommandReceived(UsbCommand
*c
);
103 void ShowCommandline(void);
104 void ExecCmd(char *cmd
);
105 //void PrintToScrollback(char *fmt, ...);