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
f325ff3d
Commit
f325ff3d
authored
Sep 11, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: fix english
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
9f93a998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
fmctdc-lib.c
lib/fmctdc-lib.c
+4
-5
fmctdc-lib.h
lib/fmctdc-lib.h
+1
-1
No files found.
lib/fmctdc-lib.c
View file @
f325ff3d
...
...
@@ -536,15 +536,15 @@ int fmctdc_get_buffer_len(struct fmctdc_board *userb, unsigned int channel)
}
/**
* The function set the buffer leng
ht
* The function set the buffer leng
th
* @param[in] userb TDC board instance token
* @param[in] channel to use
* @param[in] leng
ht
maximum number of timestamps to store
* @param[in] leng
th
maximum number of timestamps to store
* @return 0 on success, otherwise a negative errno code is set
* appropriately
*/
int
fmctdc_set_buffer_len
(
struct
fmctdc_board
*
userb
,
unsigned
int
channel
,
unsigned
int
leng
ht
)
unsigned
int
leng
th
)
{
__define_board
(
b
,
userb
);
uint32_t
val
;
...
...
@@ -557,7 +557,7 @@ int fmctdc_set_buffer_len(struct fmctdc_board *userb, unsigned int channel,
snprintf
(
attr
,
sizeof
(
attr
),
"ft-ch%d/chan0/buffer/max-buffer-len"
,
channel
+
1
);
val
=
leng
ht
;
val
=
leng
th
;
return
fmctdc_sysfs_set
(
b
,
attr
,
&
val
);
}
...
...
@@ -1127,7 +1127,6 @@ int fmctdc_coalescing_timeout_get(struct fmctdc_board *userb,
* @param[in] channel target channel [0, 4]
* @param[in] mode time-stamp mode
* @return 0 on success, otherwise -1 and errno is set appropriately
*
*/
int
fmctdc_ts_mode_set
(
struct
fmctdc_board
*
userb
,
unsigned
int
channel
,
...
...
lib/fmctdc-lib.h
View file @
f325ff3d
...
...
@@ -147,7 +147,7 @@ extern int fmctdc_get_buffer_len(struct fmctdc_board *userb,
unsigned
int
channel
);
extern
int
fmctdc_set_buffer_len
(
struct
fmctdc_board
*
userb
,
unsigned
int
channel
,
unsigned
int
leng
ht
);
unsigned
int
leng
th
);
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
,
...
...
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