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
b29fd91d
Commit
b29fd91d
authored
Sep 28, 2012
by
Miguel Gómez Sexto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function to get internal buffer pointer to the library
Signed-off-by:
Miguel Gomez
<
magomez@igalia.com
>
parent
d540ccbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
libtdc.c
lib/libtdc.c
+5
-0
libtdc.h
lib/libtdc.h
+2
-0
No files found.
lib/libtdc.c
View file @
b29fd91d
...
...
@@ -262,6 +262,11 @@ int tdc_get_active_channels(struct tdc_board *b, uint32_t *config)
return
__tdc_sysfs_get
(
b
,
"input_enable"
,
config
);
}
int
tdc_get_circular_buffer_pointer
(
struct
tdc_board
*
b
,
uint32_t
*
ptr
)
{
return
__tdc_sysfs_get
(
b
,
"get_wr_pointer"
,
ptr
);
}
static
int
__tdc_valid_channel
(
struct
tdc_board
*
b
,
int
chan
)
{
if
(
chan
<
0
||
chan
>
4
)
{
...
...
lib/libtdc.h
View file @
b29fd91d
...
...
@@ -49,6 +49,8 @@ extern int tdc_get_timestamp_threshold(struct tdc_board *b, uint32_t *thres);
extern
int
tdc_set_active_channels
(
struct
tdc_board
*
b
,
uint32_t
config
);
extern
int
tdc_get_active_channels
(
struct
tdc_board
*
b
,
uint32_t
*
config
);
extern
int
tdc_get_circular_buffer_ptr
(
struct
tdc_board
*
b
,
uint32_t
*
ptr
);
extern
int
tdc_read
(
struct
tdc_board
*
b
,
int
chan
,
struct
tdc_time
*
t
,
int
n
,
int
flags
);
extern
int
tdc_fread
(
struct
tdc_board
*
b
,
int
chan
,
struct
tdc_time
*
t
,
int
n
);
...
...
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