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