Project

General

Profile

Download (689 Bytes) Statistics
| Branch: | Tag: | Revision:
1 4c1c0deb (no author)
#ifndef _OPCD_USB_H
2
#define _OPCD_USB_H
3
4
#include "ausb/ausb.h"
5
6
#define OPCD_INTBUF_SIZE 64
7
struct opcd_handle {
8
	struct ausb_dev_handle *hdl;
9
	struct usbdevfs_urb int_urb;
10
	u_int8_t int_buf[OPCD_INTBUF_SIZE];
11
};
12
13
extern const char *opcd_hexdump(const void *data, unsigned int len);
14
15 13b60901 laforge
extern struct opcd_handle *opcd_init(int is_picc);
16 4c1c0deb (no author)
extern void opcd_fini(struct opcd_handle *od);
17
18
extern int opcd_recv_reply(struct opcd_handle *od, char *buf, int len);
19
extern int opcd_send_command(struct opcd_handle *od, u_int8_t cmd, 
20
			     u_int8_t reg, u_int8_t val, u_int16_t len,
21
			     const unsigned char *data);
22 9865031f (no author)
extern int opcd_usbperf(struct opcd_handle *od, unsigned int frames);
23 4c1c0deb (no author)
24
#endif
Add picture from clipboard (Maximum size: 48.8 MB)