summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443_layer2a.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/application/iso14443_layer2a.c')
-rw-r--r--openpicc/application/iso14443_layer2a.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openpicc/application/iso14443_layer2a.c b/openpicc/application/iso14443_layer2a.c
index 17cbca8..91df6b9 100644
--- a/openpicc/application/iso14443_layer2a.c
+++ b/openpicc/application/iso14443_layer2a.c
@@ -155,6 +155,16 @@ int iso14443_transmit(ssc_dma_tx_buffer_t *buffer, unsigned int fdt, u_int8_t as
return 0;
}
+int iso14443_tx_abort(void)
+{
+ int ret = 0;
+ taskENTER_CRITICAL();
+ ret = ssc_send_abort(ssc);
+ tx_pending = 0;
+ taskEXIT_CRITICAL();
+ return ret;
+}
+
int iso14443_wait_for_carrier(unsigned int timeout)
{
(void)timeout;
personal git repositories of Harald Welte. Your mileage may vary