Commit 941a8553 authored by Federico Vaga's avatar Federico Vaga

fmc-adc.h: add counter to handle multi-shot acquisition

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 50c3d772
......@@ -75,6 +75,9 @@ struct dma_item {
* @hwzdev: is the pointer to the fake zio_device, used to initialize and
* to remove a zio_device
*
* @n_shots: total number of programmed shots for an acquisition
* @n_fire: number of trigger fire occurred within an acquisition
*
* DMA variable: these variables are used by the fa-dma.c engine
* @sgt: scatter/gather table
* @items: vector of dma_item for a single DMA transfer
......@@ -93,6 +96,10 @@ struct fa_dev {
struct zio_device *zdev;
struct zio_device *hwzdev;
/* Acquisition */
unsigned int n_shots;
unsigned int n_fire;
/* DMA variable */
struct sg_table sgt;
struct dma_item *items;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment