]>
Commit | Line | Data |
---|---|---|
a553f267 | 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 | ||
7fe9b0b7 | 11 | #ifndef PROXUSB_H__ |
12 | #define PROXUSB_H__ | |
13 | ||
7fe9b0b7 | 14 | #include <stdint.h> |
15 | #include <stdbool.h> | |
91c38cf7 | 16 | #include <usb.h> |
7fe9b0b7 | 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); | |
3ec3a472 | 25 | struct usb_dev_handle* FindProxmark(int verbose, unsigned int *iface); |
26 | struct usb_dev_handle* OpenProxmark(int verbose); | |
7fe9b0b7 | 27 | void CloseProxmark(void); |
28 | ||
602ac4d7 | 29 | struct prox_unit { |
30 | usb_dev_handle *handle; | |
31 | char serial_number[256]; | |
32 | }; | |
33 | ||
7fe9b0b7 | 34 | #endif |