Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - 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
Beam Positoning Monitor - Software
Commits
e96f61f3
Commit
e96f61f3
authored
Oct 26, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libs/libbpmclient/*: add new data-driven trigger channel operation
parent
923d0aca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
bpm_client_core.h
src/libs/libbpmclient/include/bpm_client_core.h
+8
-0
bpm_client_core.c
src/libs/libbpmclient/src/bpm_client_core.c
+14
-0
No files found.
src/libs/libbpmclient/include/bpm_client_core.h
View file @
e96f61f3
...
...
@@ -542,6 +542,14 @@ bpm_client_err_e bpm_set_acq_fsm_stop (bpm_client_t *self, char *service,
bpm_client_err_e
bpm_get_acq_fsm_stop
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
fsm_stop
);
/* Selects which channel to look for a data trigger.
* Returns BPM_CLIENT_SUCCESS if the trigger was correctly set or
* or an error (see bpm_client_err.h for all possible errors)*/
bpm_client_err_e
bpm_set_acq_data_trig_chan
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
data_trig_chan
);
bpm_client_err_e
bpm_get_acq_data_trig_chan
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
data_trig_chan
);
/********************** DSP Functions ********************/
/* K<direction> functions */
...
...
src/libs/libbpmclient/src/bpm_client_core.c
View file @
e96f61f3
...
...
@@ -1028,6 +1028,20 @@ bpm_client_err_e bpm_get_acq_fsm_stop (bpm_client_t *self, char *service,
fsm_stop
);
}
bpm_client_err_e
bpm_set_acq_data_trig_chan
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
data_trig_chan
)
{
return
param_client_write
(
self
,
service
,
ACQ_OPCODE_HW_DATA_TRIG_CHAN
,
data_trig_chan
);
}
bpm_client_err_e
bpm_get_acq_data_trig_chan
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
data_trig_chan
)
{
return
param_client_read
(
self
,
service
,
ACQ_OPCODE_HW_DATA_TRIG_CHAN
,
data_trig_chan
);
}
static
bpm_client_err_e
_bpm_acq_start
(
bpm_client_t
*
self
,
char
*
service
,
acq_req_t
*
acq_req
)
{
assert
(
self
);
...
...
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