From 5b7a3102608e452474775d204257b1b522b819cf Mon Sep 17 00:00:00 2001 From: henryk Date: Thu, 29 Nov 2007 20:34:20 +0000 Subject: Move to prefilling the transmit buffer for faster ATQA response git-svn-id: https://svn.openpcd.org:2342/trunk@359 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/ssc_picc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openpicc/application/ssc_picc.h') diff --git a/openpicc/application/ssc_picc.h b/openpicc/application/ssc_picc.h index 9ba7ec8..671de7c 100644 --- a/openpicc/application/ssc_picc.h +++ b/openpicc/application/ssc_picc.h @@ -47,7 +47,8 @@ typedef enum { FREE=0, /* Buffer is free */ PENDING, /* Buffer has been given to the DMA controller and is currently being filled */ FULL, /* DMA controller signalled that the buffer is full */ - PROCESSING /* The buffer is currently processed by the consumer (e.g. decoder) */ + PROCESSING,/* The buffer is currently processed by the consumer (e.g. decoder) */ + PREFILLED, /* The buffer has been prefilled for later usage (only used for TX) */ } ssc_dma_buffer_state_t; typedef struct { @@ -65,6 +66,7 @@ extern xQueueHandle ssc_rx_queue; typedef struct { volatile ssc_dma_buffer_state_t state; u_int32_t len; /* Length of the content */ + void *source; /* Source pointer for a prefilled buffer; set to NULL if not used */ u_int8_t data[SSC_TX_BUFFER_SIZE]; } ssc_dma_tx_buffer_t; -- cgit v1.2.3