]>
git.zerfleddert.de Git - proxmark3-svn/blob - winsrc/prox.h
232aba1f51c0da235f869b54cb4626db62a13d45
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 CommandFinished
;
25 static void GetFromBigBuf(BYTE
*dest
, int bytes
);
26 static void CmdReset(char *str
);
27 static void CmdQuit(char *str
);
28 static void CmdEM410xread(char *str
);
29 static void CmdEM410xwatch(char *str
);
30 static void ChkBitstream(char *str
);
31 int GetClock(char *str
, int peak
);
32 static void CmdHIDdemodFSK(char *str
);
33 static void Cmdmanchestermod(char *str
);
34 static void CmdTune(char *str
);
35 static void CmdHi15read(char *str
);
36 static void CmdHi14read(char *str
);
37 static void CmdSri512read(char *str
);
38 static void CmdHi14areader(char *str
);
39 static void CmdHi15reader(char *str
);
40 static void CmdHi15tag(char *str
);
41 static void CmdHi14read_sim(char *str
);
42 static void CmdHi14readt(char *str
);
43 static void CmdHisimlisten(char *str
);
44 static void CmdHi14sim(char *str
);
45 static void CmdHi14asim(char *str
);
46 static void CmdHi14snoop(char *str
);
47 static void CmdHi14asnoop(char *str
);
48 static void CmdFPGAOff(char *str
);
49 int CmdClearGraph(int redraw
);
50 static void CmdAppendGraph(int redraw
, int clock
, int bit
);
51 static void CmdEM410xsim(char *str
);
52 static void CmdLosim(char *str
);
53 static void CmdLoread(char *str
);
54 static void CmdLosamples(char *str
);
55 static void CmdBitsamples(char *str
);
56 static void CmdHisamples(char *str
);
57 static int CmdHisamplest(char *str
, int nrlow
);
58 static void CmdHexsamples(char *str
);
59 static void CmdHisampless(char *str
);
60 static WORD
Iso15693Crc(BYTE
*v
, int n
);
61 static void CmdHi14bdemod(char *str
);
62 static void CmdHi14list(char *str
);
63 static void CmdHi14alist(char *str
);
64 static void CmdHi15demod(char *str
);
65 static void CmdTiread(char *str
);
66 static void CmdTibits(char *str
);
67 static void CmdTidemod(char *cmdline
);
68 static void CmdNorm(char *str
);
69 static void CmdDec(char *str
);
70 static void CmdHpf(char *str
);
71 static void CmdZerocrossings(char *str
);
72 static void CmdLtrim(char *str
);
73 static void CmdAutoCorr(char *str
);
74 static void CmdVchdemod(char *str
);
75 static void CmdIndalademod(char *str
);
76 static void CmdFlexdemod(char *str
);
77 static void Cmdaskdemod(char *str
);
78 static void Cmddetectclockrate(char *str
);
79 int detectclock(int peak
);
80 static void Cmdbitstream(char *str
);
81 static void Cmdmanchesterdemod(char *str
);
82 static void CmdHiddemod(char *str
);
83 static void CmdPlot(char *str
);
84 static void CmdHide(char *str
);
85 static void CmdScale(char *str
);
86 static void CmdSave(char *str
);
87 static void CmdLoad(char *str
);
88 static void CmdHIDsimTAG(char *str
);
89 static void CmdLcdReset(char *str
);
90 static void CmdLcd(char *str
);
91 static void CmdTest(char *str
);
92 static void CmdSetDivisor(char *str
);
93 static void CmdSweepLF(char *str
);
94 void CommandReceived(char *cmd
);
95 void UsbCommandReceived(UsbCommand
*c
);
99 void ShowCommandline(void);
100 void ExecCmd(char *cmd
);
101 //void PrintToScrollback(char *fmt, ...);