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
cfcf36fd
Commit
cfcf36fd
authored
Apr 27, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: remove static functions from library header
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
472ac478
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
23 deletions
+29
-23
doxygen-fmctdc-config
doc/doxygen-fmctdc-config
+1
-1
fmctdc-lib-math.c
lib/fmctdc-lib-math.c
+13
-0
fmctdc-lib.c
lib/fmctdc-lib.c
+12
-0
fmctdc-lib.h
lib/fmctdc-lib.h
+3
-22
No files found.
doc/doxygen-fmctdc-config
View file @
cfcf36fd
...
...
@@ -7,7 +7,7 @@ CREATE_SUBDIRS = YES
TAB_SIZE = 8
OPTIMIZE_OUTPUT_FOR_C = YES
EXTRACT_STATIC =
YES
EXTRACT_STATIC =
NO
CASE_SENSE_NAMES = YES
WARN_NO_PARAMDOC = YES
...
...
lib/fmctdc-lib-math.c
View file @
cfcf36fd
...
...
@@ -100,3 +100,16 @@ void fmctdc_ts_add(struct fmctdc_time *a, struct fmctdc_time *b)
a
->
seconds
+=
b
->
seconds
;
}
/**
* It compares two time-stamps.
* @param[in] a first time stamp
* @param[in] b second time stamp
* @return like memcmp(2) and strcmp(2)
*/
int
_fmctdc_tscmp
(
struct
fmctdc_time
*
a
,
struct
fmctdc_time
*
b
)
{
/* FIXME integer overflow to be managed */
return
a
->
gseq_id
-
b
->
seq_id
;
}
lib/fmctdc-lib.c
View file @
cfcf36fd
...
...
@@ -807,6 +807,18 @@ int fmctdc_reference_set(struct fmctdc_board *userb,
}
/**
* 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
*/
int
fmctdc_reference_clear
(
struct
fmctdc_board
*
userb
,
int
ch_target
)
{
return
fmctdc_reference_set
(
userb
,
ch_target
,
0
);
}
/**
* It get the current reference channel of a given target channel
* @param[in] userb TDC board instance token
...
...
lib/fmctdc-lib.h
View file @
cfcf36fd
...
...
@@ -135,17 +135,7 @@ extern int fmctdc_reference_set(struct fmctdc_board *userb,
unsigned
int
ch_target
,
int
ch_reference
);
extern
int
fmctdc_reference_get
(
struct
fmctdc_board
*
userb
,
unsigned
int
ch_target
);
/**
* 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
);
}
extern
int
fmctdc_reference_clear
(
struct
fmctdc_board
*
userb
,
int
ch_target
);
/**@}*/
...
...
@@ -175,21 +165,12 @@ extern int fmctdc_flush(struct fmctdc_board *userb, unsigned int channel);
* @{
*/
/**
* It compares two time-stamps.
* @param[in] a first time stamp
* @param[in] b second time stamp
* @return like memcmp(2) and strcmp(2)
*/
static
inline
int
_fmctdc_tscmp
(
struct
fmctdc_time
*
a
,
struct
fmctdc_time
*
b
)
{
/* FIXME integer overflow to be managed */
return
a
->
gseq_id
-
b
->
seq_id
;
}
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
);
extern
int
_fmctdc_tscmp
(
struct
fmctdc_time
*
a
,
struct
fmctdc_time
*
b
);
/**@}*/
#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