Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-lib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
misc
adc-lib
Commits
72e15c63
Commit
72e15c63
authored
Oct 22, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools:adc-acq: print timestamp is part of processing
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e02aa202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
adc-acq.c
tools/adc-acq.c
+7
-5
No files found.
tools/adc-acq.c
View file @
72e15c63
...
...
@@ -1009,11 +1009,18 @@ static void fald_acq_process_buffer(struct adc_buffer *buf,
struct
adc_conf
*
cfg_acq
,
unsigned
int
iteration
)
{
struct
adc_timestamp
ts
;
int
w
;
adc_tstamp_buffer
(
buf
,
&
ts
);
/* print/store data*/
switch
(
binmode
)
{
default:
fprintf
(
stderr
,
"time: {secs:%"
PRIu64
" ticks:%"
PRIu64
" bins:%"
PRIu64
"}
\n
"
,
ts
.
secs
,
ts
.
ticks
,
ts
.
bins
);
fald_acq_print_data
(
buf
,
cfg_acq
,
show_ndata
);
break
;
case
1
:
...
...
@@ -1099,7 +1106,6 @@ int main(int argc, char *argv[])
{
struct
adc_dev
*
adc
;
struct
adc_buffer
*
buf
;
struct
adc_timestamp
ts
;
struct
timeval
tv
=
{
0
,
0
};
struct
adc_conf
cfg_brd
,
cfg_acq
;
uint32_t
pre
,
post
,
bits
,
nshots
;
...
...
@@ -1220,10 +1226,6 @@ int main(int argc, char *argv[])
errno
,
adc_strerror
(
errno
));
break
;
}
adc_tstamp_buffer
(
buf
,
&
ts
);
fprintf
(
stderr
,
"time: {secs:%"
PRIu64
" ticks:%"
PRIu64
" bins:%"
PRIu64
"}
\n
"
,
ts
.
secs
,
ts
.
ticks
,
ts
.
bins
);
fald_acq_process_buffer
(
buf
,
&
cfg_acq
,
i
);
}
...
...
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