Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bpm-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
bpm
bpm-sw
Commits
2eae7db9
Commit
2eae7db9
authored
Sep 22, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libbpmclient/*: add data-driven threshold function
parent
4d1ec34a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
bpm_client_core.h
src/libs/libbpmclient/include/bpm_client_core.h
+11
-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 @
2eae7db9
...
...
@@ -491,6 +491,17 @@ bpm_client_err_e bpm_set_acq_data_trig_filt (bpm_client_t *self, char *service,
bpm_client_err_e
bpm_get_acq_data_trig_filt
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
data_trig_filt
);
/* Configure data-driven signed threshold. data_trig_thres is signed integer
* number from -2^31 to 2^31-1, meaning the number to be compared on which the
* data-driven trigger will be detected. This is only valid for
* data-driven 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_thres
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
data_trig_thres
);
bpm_client_err_e
bpm_get_acq_data_trig_thres
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
data_trig_thres
);
/* Configure trigger delay. hw_trig_dly is an integer number from 0 to 2^32-1,
* meaning the number of ADC clock cycles after which the detected trigger
* will be used. This is only valid for external or data-driven trigger types.
...
...
src/libs/libbpmclient/src/bpm_client_core.c
View file @
2eae7db9
...
...
@@ -982,6 +982,20 @@ bpm_client_err_e bpm_get_acq_data_trig_filt (bpm_client_t *self, char *service,
data_trig_filt
);
}
bpm_client_err_e
bpm_set_acq_data_trig_thres
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
data_trig_thres
)
{
return
param_client_write
(
self
,
service
,
ACQ_OPCODE_HW_DATA_TRIG_THRES
,
data_trig_thres
);
}
bpm_client_err_e
bpm_get_acq_data_trig_thres
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
data_trig_thres
)
{
return
param_client_read
(
self
,
service
,
ACQ_OPCODE_HW_DATA_TRIG_THRES
,
data_trig_thres
);
}
bpm_client_err_e
bpm_set_acq_hw_trig_dly
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
hw_trig_dly
)
{
...
...
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