mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
include a copy instead of the symlink
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
../../openpcd/firmware/include/simtrace_usb.h
|
|
||||||
24
host/simtrace_usb.h
Normal file
24
host/simtrace_usb.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#ifndef SIMTRACE_USB_H
|
||||||
|
#define SIMTRACE_USB_H
|
||||||
|
|
||||||
|
//#include <stdint.h>
|
||||||
|
|
||||||
|
/* this is kept compatible with OpenPCD protocol */
|
||||||
|
struct simtrace_hdr {
|
||||||
|
u_int8_t cmd;
|
||||||
|
u_int8_t flags;
|
||||||
|
u_int8_t res[2];
|
||||||
|
u_int8_t data[0];
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
enum simtrace_usb_msgt {
|
||||||
|
SIMTRACE_MSGT_NULL,
|
||||||
|
SIMTRACE_MSGT_DATA,
|
||||||
|
SIMTRACE_MSGT_RESET, /* reset was asserted, no more data */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* flags for MSGT_DATA */
|
||||||
|
#define SIMTRACE_FLAG_ATR 0x01 /* ATR immediately after reset */
|
||||||
|
#define SIMTRACE_FLAG_WTIME_EXP 0x04 /* work waiting time expired */
|
||||||
|
|
||||||
|
#endif /* SIMTRACE_USB_H */
|
||||||
Reference in New Issue
Block a user