Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - 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 DEL 1ns 4cha - Software
Commits
ff5c9fbd
Commit
ff5c9fbd
authored
May 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd-raw-input: fixed after rename to ATTR_TDC
parent
32827bf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fd-raw-input.c
tools/fd-raw-input.c
+8
-8
No files found.
tools/fd-raw-input.c
View file @
ff5c9fbd
...
...
@@ -107,7 +107,7 @@ int main(int argc, char **argv)
exit
(
1
);
}
attrs
=
ctrl
.
attr_channel
.
ext_val
;
sequence
=
attrs
[
FD_ATTR_
IN
_SEQ
];
sequence
=
attrs
[
FD_ATTR_
TDC
_SEQ
];
if
(
sequence
-
last
!=
1
)
printf
(
"%s: LOST %i events
\n
"
,
argv
[
i
],
...
...
@@ -115,8 +115,8 @@ int main(int argc, char **argv)
last
=
sequence
;
printf
(
"%s: "
,
argv
[
i
]);
if
(
floatmode
)
{
t2
=
attrs
[
FD_ATTR_
IN
_UTC_L
]
+
attrs
[
FD_ATTR_
IN
_COARSE
]
t2
=
attrs
[
FD_ATTR_
TDC
_UTC_L
]
+
attrs
[
FD_ATTR_
TDC
_COARSE
]
*
.
00000000
8
;
/* 8ns */
if
(
t1
)
{
printf
(
"%17.9Lf (delta %13.9Lf)
\n
"
,
...
...
@@ -128,11 +128,11 @@ int main(int argc, char **argv)
continue
;
}
printf
(
"%08x %08x %08x %08x %08x
\n
"
,
attrs
[
FD_ATTR_
IN
_UTC_H
],
attrs
[
FD_ATTR_
IN
_UTC_L
],
attrs
[
FD_ATTR_
IN
_COARSE
],
attrs
[
FD_ATTR_
IN
_FRAC
],
attrs
[
FD_ATTR_
IN
_SEQ
]);
attrs
[
FD_ATTR_
TDC
_UTC_H
],
attrs
[
FD_ATTR_
TDC
_UTC_L
],
attrs
[
FD_ATTR_
TDC
_COARSE
],
attrs
[
FD_ATTR_
TDC
_FRAC
],
attrs
[
FD_ATTR_
TDC
_SEQ
]);
}
}
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