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
b4179d59
Commit
b4179d59
authored
Jan 30, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add function to clear reference
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
3fe74289
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
fmctdc-lib.h
lib/fmctdc-lib.h
+13
-0
No files found.
lib/fmctdc-lib.h
View file @
b4179d59
...
...
@@ -97,4 +97,17 @@ extern uint64_t fmctdc_ts_approx_ns(struct fmctdc_time *a);
extern
uint64_t
fmctdc_ts_ps
(
struct
fmctdc_time
*
a
);
extern
void
fmctdc_ts_sub
(
struct
fmctdc_time
*
a
,
struct
fmctdc_time
*
b
);
extern
void
ft_ts_add
(
struct
fmctdc_time
*
a
,
struct
fmctdc_time
*
b
);
/**
* It removes the time reference from a target channel
* @param[in] userb TDC board instance token
* @param[in] ch_target target channel [1, 5]
* @return 0 on success, otherwise -1 and errno is set appropriately
*/
static
inline
int
fmctdc_reference_clear
(
struct
fmctdc_board
*
userb
,
int
ch_target
)
{
return
fmctdc_reference_set
(
userb
,
ch_target
,
0
);
}
#endif
/* __FMCTDC_LIB_H__ */
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