R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / tools / deprecated-hid-flasher / flasher / proxusb.h
blob205d670a1e65c77d3889179fe0d966b73092c0b9
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 //-----------------------------------------------------------------------------
11 #ifndef PROXUSB_H__
12 #define PROXUSB_H__
14 #include <stdint.h>
15 #include <stdbool.h>
16 #include <stdio.h>
17 #include <stdlib.h>
18 #include <string.h>
19 #include <unistd.h>
20 #include <usb.h>
21 #include <strings.h>
22 #include <errno.h>
23 #include "proxmark3.h"
24 #include "usb_cmd.h"
26 extern unsigned char return_on_error;
27 extern unsigned char error_occurred;
29 void SendCommandBL(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, void *data, size_t len);
30 bool ReceiveCommandPoll(PacketResponseOLD *c);
31 void ReceiveCommand(PacketResponseOLD *c);
32 struct usb_dev_handle *FindProxmark(int verbose, unsigned int *iface);
33 struct usb_dev_handle *OpenProxmark(int verbose);
34 void CloseProxmark(void);
36 struct prox_unit {
37 usb_dev_handle *handle;
38 char serial_number[256];
41 #endif