]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/comms.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
3 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
9 // Code for communicating with the proxmark3 hardware.
10 //-----------------------------------------------------------------------------
20 extern void SetOffline(bool new_offline
);
21 extern bool IsOffline();
22 extern bool OpenProxmark(void *port
, bool wait_for_port
, int timeout
);
23 extern void CloseProxmark(void);
24 extern void SendCommand(UsbCommand
*c
);
25 extern void clearCommandBuffer();
26 extern bool WaitForResponseTimeoutW(uint32_t cmd
, UsbCommand
* response
, size_t ms_timeout
, bool show_warning
);
27 extern bool WaitForResponseTimeout(uint32_t cmd
, UsbCommand
* response
, size_t ms_timeout
);
28 extern bool WaitForResponse(uint32_t cmd
, UsbCommand
* response
);
29 extern bool GetFromBigBuf(uint8_t *dest
, int bytes
, int start_index
, UsbCommand
*response
, size_t ms_timeout
, bool show_warning
);
30 extern bool GetFromFpgaRAM(uint8_t *dest
, int bytes
);