]> cvs.zerfleddert.de Git - proxmark3-svn/blob - client/prox.h
Decreased BigBuff mem, some elf flasher fixes (needs more work) but flashing correctl...
[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 CmdHiTune(char *str);
48 static void CmdHi15read(char *str);
49 static void CmdHi14read(char *str);
50 static void CmdSri512read(char *str);
51 static void CmdHi14areader(char *str);
52 static void CmdHi15reader(char *str);
53 static void CmdHi15tag(char *str);
54 static void CmdHi14read_sim(char *str);
55 static void CmdHi14readt(char *str);
56 static void CmdHisimlisten(char *str);
57 static void CmdReadmem(char *str);
58 static void CmdHi14sim(char *str);
59 static void CmdHi14asim(char *str);
60 static void CmdHi14snoop(char *str);
61 static void CmdHi14asnoop(char *str);
62 static void CmdFPGAOff(char *str);
63 int CmdClearGraph(int redraw);
64 static void CmdAppendGraph(int redraw, int clock, int bit);
65 static void CmdEM410xsim(char *str);
66 static void CmdLosim(char *str);
67 static void CmdLoCommandRead(char *str);
68 static void CmdLoread(char *str);
69 static void CmdLosamples(char *str);
70 static void CmdBitsamples(char *str);
71 static void CmdHisamples(char *str);
72 static int CmdHisamplest(char *str, int nrlow);
73 static void CmdHexsamples(char *str);
74 static void CmdHisampless(char *str);
75 static uint16_t Iso15693Crc(uint8_t *v, int n);
76 static void CmdHi14bdemod(char *str);
77 static void CmdHi14list(char *str);
78 static void CmdHi14alist(char *str);
79 static void CmdHi15demod(char *str);
80 static void CmdTiread(char *str);
81 static void CmdTibits(char *str);
82 static void CmdTidemod(char *cmdline);
83 static void CmdNorm(char *str);
84 static void CmdDec(char *str);
85 static void CmdHpf(char *str);
86 static void CmdZerocrossings(char *str);
87 static void CmdLtrim(char *str);
88 static void CmdAutoCorr(char *str);
89 static void CmdVchdemod(char *str);
90 static void CmdIndalademod(char *str);
91 static void CmdFlexdemod(char *str);
92 static void Cmdaskdemod(char *str);
93 static void Cmddetectclockrate(char *str);
94 int detectclock(int peak);
95 static void Cmdbitstream(char *str);
96 static void Cmdmanchesterdemod(char *str);
97 static void CmdHiddemod(char *str);
98 static void CmdPlot(char *str);
99 static void CmdHide(char *str);
100 static void CmdScale(char *str);
101 static void CmdSave(char *str);
102 static void CmdLoad(char *str);
103 static void CmdHIDsimTAG(char *str);
104 static void CmdLcdReset(char *str);
105 static void CmdLcd(char *str);
106 static void CmdTest(char *str);
107 static void CmdSetDivisor(char *str);
108 static void CmdSweepLF(char *str);
109 void CommandReceived(char *cmd);
110 void UsbCommandReceived(UsbCommand *c);
111
112
113 // cmdline.cpp
114 void ShowCommandline(void);
115 void ExecCmd(char *cmd);
116 //void PrintToScrollback(char *fmt, ...);
117
118 #endif
Impressum, Datenschutz