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
045a9bf6
Commit
045a9bf6
authored
Apr 30, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: remove unused
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
4c180ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
fmc-tdc-acquisition.c
tools/fmc-tdc-acquisition.c
+0
-51
No files found.
tools/fmc-tdc-acquisition.c
deleted
100644 → 0
View file @
4c180ed3
/*
* The fmc-tdc (a.k.a. FmcTdc1ns5cha) library test program.
*
* Author: Tomasz Włostowski <tomasz.wlostowski@cern.ch>
* Author: Alessandro Rubini <rubini@gnudd.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2 as published by the Free Software Foundation or, at your
* option, any later version.
*
* fmctdc-acquisition: enables/disables acquisition (all inputs).
*/
#include "test-common.h"
int
main
(
int
argc
,
char
**
argv
)
{
init
(
argc
,
argv
);
check_help
(
argc
,
argv
,
2
,
"[-h] <device> [on/off]"
,
"Enables or disables acquisition (that is, all inputs simultaneosly). Disabling acquisition
\n
"
"also empties the timestamp buffers."
,
""
);
open_board
(
argv
[
1
]);
if
(
argc
==
2
)
{
printf
(
"board %s: acquisition is %s
\n
"
,
argv
[
1
],
fmctdc_get_acquisition
(
brd
)
?
"on"
:
"off"
);
}
else
if
(
argc
>
2
)
{
int
on
;
if
(
!
strcmp
(
argv
[
2
],
"on"
))
on
=
1
;
else
if
(
!
strcmp
(
argv
[
2
],
"off"
))
on
=
0
;
else
{
fprintf
(
stderr
,
"%s: on/off expected.
\n
"
,
argv
[
0
]);
return
-
1
;
}
if
(
fmctdc_set_acquisition
(
brd
,
on
)
<
0
)
{
perror
(
"fmctdc_set_acquisition()"
);
return
-
1
;
}
}
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