]> git.zerfleddert.de Git - proxmark3-svn/blame - client/proxusb.h
fixed USB GPIO bug reported by gregy, and fixed 'hf 14a reader' command
[proxmark3-svn] / client / proxusb.h
CommitLineData
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
19extern unsigned char return_on_error;
20extern unsigned char error_occured;
21
902cb3c0 22void SendCommand_(HidCommand *c);
23bool ReceiveCommandPoll(HidCommand *c);
24void ReceiveCommand(HidCommand *c);
3ec3a472 25struct usb_dev_handle* FindProxmark(int verbose, unsigned int *iface);
26struct usb_dev_handle* OpenProxmark(int verbose);
7fe9b0b7 27void CloseProxmark(void);
28
602ac4d7 29struct prox_unit {
30 usb_dev_handle *handle;
31 char serial_number[256];
32};
33
7fe9b0b7 34#endif
Impressum, Datenschutz