Project

General

Profile

Download (632 Bytes) Statistics
| Branch: | Tag: | Revision:
1 29b1190d Harald Welte
#ifndef SIMTRACE_USB_H
2
#define SIMTRACE_USB_H
3
4
//#include <stdint.h>
5
6
/* this is kept compatible with OpenPCD protocol */
7
struct simtrace_hdr {
8
	u_int8_t cmd;
9
	u_int8_t flags;
10
	u_int8_t res[2];
11
	u_int8_t data[0];
12
} __attribute__ ((packed));
13
14
enum simtrace_usb_msgt {
15
	SIMTRACE_MSGT_NULL,
16
	SIMTRACE_MSGT_DATA,
17
	SIMTRACE_MSGT_RESET,		/* reset was asserted, no more data */
18
};
19
20
/* flags for MSGT_DATA */
21
#define SIMTRACE_FLAG_ATR		0x01	/* ATR immediately after reset */
22
#define SIMTRACE_FLAG_WTIME_EXP		0x04	/* work waiting time expired */
23 b14d0ad2 Harald Welte
#define SIMTRACE_FLAG_PPS_FIDI		0x08	/* Fi/Di values in res[2] */
24 29b1190d Harald Welte
25
#endif /* SIMTRACE_USB_H */
Add picture from clipboard (Maximum size: 48.8 MB)