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