]> cvs.zerfleddert.de Git - proxmark3-svn/blob - client/prox.h
Fixed some compile warnings in client, minor tidy up with some dbprintf statements
[proxmark3-svn] / client / prox.h
1 #ifndef __PROX_H
2 #define __PROX_H
3 #ifdef _MSC_VER
4 typedef DWORD uint32_t;
5 typedef BYTE uint8_t;
6 typedef WORD uint16_t;
7 #define bool BOOL
8 #else
9 #include <stdint.h>
10 #include <stdbool.h>
11 #endif
12 #include "../include/usb_cmd.h"
13
14 // prox.cpp
15 void ReceiveCommand(UsbCommand *c);
16 bool ReceiveCommandPoll(UsbCommand *c);
17 void SendCommand(UsbCommand *c);
18 void WaitForAck(void);
19 void wait_for_response(uint32_t command_type);
20
21 // gui.cpp
22 void ShowGui(void);
23 void HideGraphWindow(void);
24 void ShowGraphWindow(void);
25 void RepaintGraphWindow(void);
26 void PrintToScrollback(char *fmt, ...);
27 #define MAX_GRAPH_TRACE_LEN (1024*128)
28 extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
29 extern int GraphTraceLen;
30 extern double CursorScaleFactor;
31 extern int PlotGridX, PlotGridY;
32 extern int CommandFinished;
33 extern int offline;
34
35 // command.cpp
36 static void CmdBuffClear(char *str);
37 static void GetFromBigBuf(uint8_t *dest, int bytes);
38 static void CmdReset(char *str);
39 static void CmdQuit(char *str);
40 static void CmdEM410xread(char *str);
41 static void CmdEM410xwatch(char *str);
42 static void ChkBitstream(char *str);
43 int GetClock(char *str, int peak);
44 static void CmdHIDdemodFSK(char *str);
45 static void Cmdmanchestermod(char *str);
46 static void CmdTune(char *str);
47 static void CmdHi15read(char *str);
48 static void CmdHi14read(char *str);
49 static void CmdSri512read(char *str);
50 static void CmdHi14areader(char *str);
51 static void CmdHi15reader(char *str);
52 static void CmdHi15tag(char *str);
53 static void CmdHi14read_sim(char *str);
54 static void CmdHi14readt(char *str);
55 static void CmdHisimlisten(char *str);
56 static void CmdReadmem(char *str);
57 static void CmdHi14sim(char *str);
58 static void CmdHi14asim(char *str);
59 static void CmdHi14snoop(char *str);
60 static void CmdHi14asnoop(char *str);
61 static void CmdFPGAOff(char *str);
62 int CmdClearGraph(int redraw);
63 static void CmdAppendGraph(int redraw, int clock, int bit);
64 static void CmdEM410xsim(char *str);
65 static void CmdLosim(char *str);
66 static void CmdLoCommandRead(char *str);
67 static void CmdLoread(char *str);
68 static void CmdLosamples(char *str);
69 static void CmdBitsamples(char *str);
70 static void CmdHisamples(char *str);
71 static int CmdHisamplest(char *str, int nrlow);
72 static void CmdHexsamples(char *str);
73 static void CmdHisampless(char *str);
74 static uint16_t Iso15693Crc(uint8_t *v, int n);
75 static void CmdHi14bdemod(char *str);
76 static void CmdHi14list(char *str);
77 static void CmdHi14alist(char *str);
78 static void CmdHi15demod(char *str);
79 static void CmdTiread(char *str);
80 static void CmdTibits(char *str);
81 static void CmdTidemod(char *cmdline);
82 static void CmdNorm(char *str);
83 static void CmdDec(char *str);
84 static void CmdHpf(char *str);
85 static void CmdZerocrossings(char *str);
86 static void CmdLtrim(char *str);
87 static void CmdAutoCorr(char *str);
88 static void CmdVchdemod(char *str);
89 static void CmdIndalademod(char *str);
90 static void CmdFlexdemod(char *str);
91 static void Cmdaskdemod(char *str);
92 static void Cmddetectclockrate(char *str);
93 int detectclock(int peak);
94 static void Cmdbitstream(char *str);
95 static void Cmdmanchesterdemod(char *str);
96 static void CmdHiddemod(char *str);
97 static void CmdPlot(char *str);
98 static void CmdHide(char *str);
99 static void CmdScale(char *str);
100 static void CmdSave(char *str);
101 static void CmdLoad(char *str);
102 static void CmdHIDsimTAG(char *str);
103 static void CmdLcdReset(char *str);
104 static void CmdLcd(char *str);
105 static void CmdTest(char *str);
106 static void CmdSetDivisor(char *str);
107 static void CmdSweepLF(char *str);
108 void CommandReceived(char *cmd);
109 void UsbCommandReceived(UsbCommand *c);
110
111
112 // cmdline.cpp
113 void ShowCommandline(void);
114 void ExecCmd(char *cmd);
115 //void PrintToScrollback(char *fmt, ...);
116
117 #endif
Impressum, Datenschutz