]> git.zerfleddert.de Git - proxmark3-svn/blame - client/comms.h
Always enable fast response mode (was enabled for flasher only)
[proxmark3-svn] / client / comms.h
CommitLineData
f5ecd97b 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
b8ed9975 12#ifndef COMMS_H__
13#define COMMS_H__
f5ecd97b 14
15#include <stdbool.h>
f5ecd97b 16#include "usb_cmd.h"
f5ecd97b 17
b8ed9975 18extern void SetOffline(bool new_offline);
19extern bool IsOffline();
929b61c6 20extern bool OpenProxmark(void *port, bool wait_for_port, int timeout);
b8ed9975 21extern void CloseProxmark(void);
22extern void SendCommand(UsbCommand *c);
23extern void clearCommandBuffer();
24extern bool WaitForResponseTimeoutW(uint32_t cmd, UsbCommand* response, size_t ms_timeout, bool show_warning);
25extern bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout);
26extern bool WaitForResponse(uint32_t cmd, UsbCommand* response);
27extern bool GetFromBigBuf(uint8_t *dest, int bytes, int start_index, UsbCommand *response, size_t ms_timeout, bool show_warning);
28extern bool GetFromFpgaRAM(uint8_t *dest, int bytes);
29
30#endif // COMMS_H__
Impressum, Datenschutz