]> cvs.zerfleddert.de Git - proxmark3-svn/blob - client/comms.h
11df1d547090a27d0ad83e2b04dbd5ce214551b1
[proxmark3-svn] / client / comms.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
3 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
4 //
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
7 // the license.
8 //-----------------------------------------------------------------------------
9 // Code for communicating with the proxmark3 hardware.
10 //-----------------------------------------------------------------------------
11
12 #ifndef COMMS_H__
13 #define COMMS_H__
14
15 #include <stdbool.h>
16 #include "usb_cmd.h"
17
18 extern void SetOffline(bool new_offline);
19 extern bool IsOffline();
20 extern bool OpenProxmark(void *port, bool wait_for_port, int timeout);
21 extern void CloseProxmark(void);
22 extern void SendCommand(UsbCommand *c);
23 extern void clearCommandBuffer();
24 extern bool WaitForResponseTimeoutW(uint32_t cmd, UsbCommand* response, size_t ms_timeout, bool show_warning);
25 extern bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout);
26 extern bool WaitForResponse(uint32_t cmd, UsbCommand* response);
27 extern bool GetFromBigBuf(uint8_t *dest, int bytes, int start_index, UsbCommand *response, size_t ms_timeout, bool show_warning);
28 extern bool GetFromFpgaRAM(uint8_t *dest, int bytes);
29
30 #endif // COMMS_H__
Impressum, Datenschutz