Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
68ca1db3
Commit
68ca1db3
authored
Apr 19, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: add sample-counter to sysfs
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
0d7eae66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
fmc-adc-driver.in
doc/fmc-adc-driver.in
+8
-0
fa-zio-drv.c
kernel/fa-zio-drv.c
+1
-0
No files found.
doc/fmc-adc-driver.in
View file @
68ca1db3
...
...
@@ -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 -
...
...
kernel/fa-zio-drv.c
View file @
68ca1db3
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment