Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 TDC 1ns 5cha - Software
Commits
8c05f03c
Commit
8c05f03c
authored
Oct 03, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc/lib: deactivate adquisition and minor stuff
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
9242d28c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test.c
lib/test.c
+4
-2
No files found.
lib/test.c
View file @
8c05f03c
...
...
@@ -152,17 +152,19 @@ int main(int argc, char **argv)
tdc_activate_all_channels
(
b
);
tdc_set_active_channels
(
b
,
CHAN0
);
tdc_set_time_threshold
(
b
,
10
);
tdc_start_acquisition
(
b
);
for
(
i
=
0
;
i
<
100
;
i
++
)
{
/* this should be a blocking read */
res
=
tdc_read
(
b
,
0
,
&
t
,
1
,
0
);
if
(
res
==
1
)
{
printf
(
"Got sample: utc %"
PRIu64
" ticks %"
PRIu64
" bins %"
PRIu64
" dacapo %i"
,
printf
(
"Got sample: utc %"
PRIu64
" ticks %"
PRIu64
" bins %"
PRIu64
" dacapo %i
\n
"
,
t
.
utc
,
t
.
ticks
,
t
.
bins
,
t
.
da_capo
);
}
else
{
printf
(
"Error reading sample"
);
printf
(
"Error reading sample
\n
"
);
}
}
tdc_stop_acquisition
(
b
);
tdc_close
(
b
);
return
0
;
...
...
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