]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - client/hid-flasher/proxusb.h
Use PolarSSL DES implementation (GPL 2 or later) for both client and firmware (#378)
[proxmark3-svn] / client / hid-flasher / proxusb.h
... / ...
CommitLineData
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
19extern unsigned char return_on_error;
20extern unsigned char error_occured;
21
22void SendCommand(UsbCommand *c);
23bool ReceiveCommandPoll(UsbCommand *c);
24void ReceiveCommand(UsbCommand *c);
25struct usb_dev_handle* FindProxmark(int verbose, unsigned int *iface);
26struct usb_dev_handle* OpenProxmark(int verbose);
27void CloseProxmark(void);
28
29struct prox_unit {
30 usb_dev_handle *handle;
31 char serial_number[256];
32};
33
34#endif
Impressum, Datenschutz