Commit 68ca1db3 authored by Federico Vaga's avatar Federico Vaga

kernel: add sample-counter to sysfs

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0d7eae66
......@@ -640,6 +640,13 @@ not described.
This read-only attributes returns the measured sampling frequency
@item sample-counter
Number of samples acquired on each channel during the last acquisition.
If queried while the acquisition is running you will get the number of
samples acquired till that moment. It can be used to evaluate the progress
of a slow acquisition.
@end table
......@@ -908,6 +915,7 @@ that ZIO framework can handle only 32bit unsigned integer.
@item Cset @tab @code{rst-ch-offset} @tab wo @tab - @tab any
@item Cset @tab @code{sample-decimation} @tab rw @tab 1 @tab [1;65535]
@item Cset @tab @code{sample-frequency} @tab ro @tab - @tab -
@item Cset @tab @code{sample-counter} @tab ro @tab - @tab -
@item Cset @tab @code{tstamp-base-s} @tab rw @tab - @tab -
@item Cset @tab @code{tstamp-base-t} @tab rw @tab - @tab -
......
......@@ -122,6 +122,7 @@ static struct zio_attribute zfad_cset_ext_zattr[] = {
ZIO_PARAM_EXT("sample-frequency", ZIO_RO_PERM, ZFAT_SAMPLING_HZ, 0),
ZIO_PARAM_EXT("max-sample-mshot", ZIO_RO_PERM, ZFA_MULT_MAX_SAMP, 0),
ZIO_PARAM_EXT("sample-counter", ZIO_RO_PERM, ZFAT_CNT, 0),
};
#if 0 /* FIXME Unused until TLV control will be available */
......
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