]> git.zerfleddert.de Git - proxmark3-svn/blob - client/hid-flasher/proxusb.h
small fix in t5 trace data
[proxmark3-svn] / client / hid-flasher / proxusb.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // USB utilities
9 //-----------------------------------------------------------------------------
10
11 #ifndef PROXUSB_H__
12 #define PROXUSB_H__
13
14 #include <stdint.h>
15 #include <stdbool.h>
16 #include <usb.h>
17 #include "usb_cmd.h"
18
19 extern unsigned char return_on_error;
20 extern unsigned char error_occured;
21
22 void SendCommand(UsbCommand *c);
23 bool ReceiveCommandPoll(UsbCommand *c);
24 void ReceiveCommand(UsbCommand *c);
25 struct usb_dev_handle* FindProxmark(int verbose, unsigned int *iface);
26 struct usb_dev_handle* OpenProxmark(int verbose);
27 void CloseProxmark(void);
28
29 struct prox_unit {
30 usb_dev_handle *handle;
31 char serial_number[256];
32 };
33
34 #endif
Impressum, Datenschutz