X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/cd00aa3043b507ed10bf79a37b83b88741d176d7..8b576d2d3125081ab24a970f6430044a19a4231d:/client/prox.h?ds=inline diff --git a/client/prox.h b/client/prox.h index aeb6dfea..10429dc1 100644 --- a/client/prox.h +++ b/client/prox.h @@ -1,15 +1,25 @@ #ifndef __PROX_H #define __PROX_H - +#ifdef _MSC_VER +typedef DWORD uint32_t; +typedef BYTE uint8_t; +typedef WORD uint16_t; +#define bool BOOL +#else +#include +#include +#endif #include "../include/usb_cmd.h" // prox.cpp void ReceiveCommand(UsbCommand *c); -BOOL ReceiveCommandPoll(UsbCommand *c); -void SendCommand(UsbCommand *c, BOOL wantAck); +bool ReceiveCommandPoll(UsbCommand *c); +void SendCommand(UsbCommand *c); +void WaitForAck(void); +void wait_for_response(uint32_t command_type); // gui.cpp -void ShowGui(); +void ShowGui(void); void HideGraphWindow(void); void ShowGraphWindow(void); void RepaintGraphWindow(void); @@ -24,7 +34,7 @@ extern int offline; // command.cpp static void CmdBuffClear(char *str); -static void GetFromBigBuf(BYTE *dest, int bytes); +static void GetFromBigBuf(uint8_t *dest, int bytes); static void CmdReset(char *str); static void CmdQuit(char *str); static void CmdEM410xread(char *str); @@ -61,7 +71,7 @@ static void CmdHisamples(char *str); static int CmdHisamplest(char *str, int nrlow); static void CmdHexsamples(char *str); static void CmdHisampless(char *str); -static WORD Iso15693Crc(BYTE *v, int n); +static uint16_t Iso15693Crc(uint8_t *v, int n); static void CmdHi14bdemod(char *str); static void CmdHi14list(char *str); static void CmdHi14alist(char *str);