diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-29 20:34:20 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-29 20:34:20 +0000 |
commit | 5b7a3102608e452474775d204257b1b522b819cf (patch) | |
tree | afb4d1700211ab580bd61e6ae5382ed43602c8ea /openpicc/application/ssc_picc.h | |
parent | 73d04ff827f7bde1051328b786939d65002aa993 (diff) |
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
Diffstat (limited to 'openpicc/application/ssc_picc.h')
-rw-r--r-- | openpicc/application/ssc_picc.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |