mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
simtrace: Add print-out of PPS (Fi/Di change).
simtrace firmware 4f7ca20bf40b911c035264d86ef0359d20e7ac88 and later includes an indication of PPS-induced Fi/Di changes. We now print the such indications to the user.
This commit is contained in:
@@ -97,6 +97,10 @@ static int process_usb_msg(uint8_t *buf, int len)
|
|||||||
apdu_out_cb(payload, payload_len, NULL);
|
apdu_out_cb(payload, payload_len, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (sh->flags & SIMTRACE_FLAG_PPS_FIDI) {
|
||||||
|
printf("PPS(Fi=%u/Di=%u) ",
|
||||||
|
sh->res[0], sh->res[1]);
|
||||||
|
}
|
||||||
/* everything else goes into APDU splitter */
|
/* everything else goes into APDU splitter */
|
||||||
apdu_split_in(as, payload, payload_len);
|
apdu_split_in(as, payload, payload_len);
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
@@ -20,5 +20,6 @@ enum simtrace_usb_msgt {
|
|||||||
/* flags for MSGT_DATA */
|
/* flags for MSGT_DATA */
|
||||||
#define SIMTRACE_FLAG_ATR 0x01 /* ATR immediately after reset */
|
#define SIMTRACE_FLAG_ATR 0x01 /* ATR immediately after reset */
|
||||||
#define SIMTRACE_FLAG_WTIME_EXP 0x04 /* work waiting time expired */
|
#define SIMTRACE_FLAG_WTIME_EXP 0x04 /* work waiting time expired */
|
||||||
|
#define SIMTRACE_FLAG_PPS_FIDI 0x08 /* Fi/Di values in res[2] */
|
||||||
|
|
||||||
#endif /* SIMTRACE_USB_H */
|
#endif /* SIMTRACE_USB_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user