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
2e8afbf1
Commit
2e8afbf1
authored
Sep 25, 2012
by
Miguel Gómez Sexto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an enumeration to handle the channel numbers
Signed-off-by:
Miguel Gomez
<
magomez@igalia.com
>
parent
17d9a519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
libtdc.h
lib/libtdc.h
+7
-0
test.c
lib/test.c
+1
-1
No files found.
lib/libtdc.h
View file @
2e8afbf1
...
...
@@ -18,6 +18,13 @@ struct tdc_time {
uint64_t
bins
;
};
enum
{
CHAN0
=
1
<<
0
,
CHAN1
=
1
<<
1
,
CHAN2
=
1
<<
2
,
CHAN3
=
1
<<
3
,
CHAN4
=
1
<<
4
};
extern
int
tdc_init
(
void
);
extern
void
tdc_exit
(
void
);
...
...
lib/test.c
View file @
2e8afbf1
...
...
@@ -72,7 +72,7 @@ int main(int argc, char **argv)
printf
(
"Timestamps threshold functions OK
\n
"
);
/* set/get active channels */
set
=
12
;
set
=
CHAN0
|
CHAN2
|
CHAN4
;
if
(
tdc_set_active_channels
(
b
,
set
))
printf
(
"Error setting active channels
\n
"
);
if
(
tdc_get_active_channels
(
b
,
&
get
))
...
...
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