summaryrefslogtreecommitdiff
path: root/firmware/src/simtrace/iso7816_uart.h
diff options
context:
space:
mode:
authorMin Xu <min.xu@min-info.net>2014-10-25 20:55:01 +0200
committerHarald Welte <laforge@gnumonks.org>2014-11-11 22:30:54 +0100
commitab325fc295a23d04f27cc7300b12d2564e4d83e6 (patch)
tree7ded03272565766e166b04c20fa18ff94ef3ac9c /firmware/src/simtrace/iso7816_uart.h
parent9bd1b003a63d61e91db3827c2b66290abc1adf13 (diff)
Ensure to transmit current req_ctx on RESET/VCC events
When any of the following events occur: * VCC_PHONE off * nRST * RST we tranmsit the current req_ctx, if there is data pending. This ensures that for any successive data, the ATR flag in the next req_ctx containing the data, not in the previous req_ctx. It also ensures that the ATR is aligned at 0 offset in the new req_ctx, which is an assumption the host software makes but the previous code didn't ensure. Furthermore, we introduce a periodic flushing of any pending but incomplete req_ctx.
Diffstat (limited to 'firmware/src/simtrace/iso7816_uart.h')
-rw-r--r--firmware/src/simtrace/iso7816_uart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/src/simtrace/iso7816_uart.h b/firmware/src/simtrace/iso7816_uart.h
index 1a2b202..c5790c8 100644
--- a/firmware/src/simtrace/iso7816_uart.h
+++ b/firmware/src/simtrace/iso7816_uart.h
@@ -9,5 +9,7 @@ void iso_uart_rx_mode(void);
void iso_uart_clk_master(unsigned int master);
void iso_uart_init(void);
void iso_uart_report_overrun(void);
+void iso_uart_flush(void);
+void iso_uart_idleflush(void);
#endif
personal git repositories of Harald Welte. Your mileage may vary