summaryrefslogtreecommitdiff
path: root/openpicc/application/ssc_picc.h
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/application/ssc_picc.h')
-rw-r--r--openpicc/application/ssc_picc.h4
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;
personal git repositories of Harald Welte. Your mileage may vary