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
a8e753d6
Commit
a8e753d6
authored
Sep 17, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libs/libbpmclient/*: remove old/duplicate acquisition functions
This fixes #106 github issue
parent
3646eb9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
407 deletions
+120
-407
bpm_client_core.h
src/libs/libbpmclient/include/bpm_client_core.h
+28
-31
bpm_client_core.c
src/libs/libbpmclient/src/bpm_client_core.c
+92
-376
No files found.
src/libs/libbpmclient/include/bpm_client_core.h
View file @
a8e753d6
...
@@ -396,23 +396,23 @@ typedef struct {
...
@@ -396,23 +396,23 @@ typedef struct {
/* Acquisition channel definitions */
/* Acquisition channel definitions */
extern
acq_chan_t
acq_chan
[
END_CHAN_ID
];
extern
acq_chan_t
acq_chan
[
END_CHAN_ID
];
/* Start acquisition on a specific channel with an sp
oecif
number of samples,
/* Start acquisition on a specific channel with an sp
ecific
number of samples,
* through the use of acq_req_t structure.
* through the use of acq_req_t structure.
* Returns BPM_CLIENT_SUCCESS if ok and BPM_CLIIENT_ERR_SERVER if the server
* Returns BPM_CLIENT_SUCCESS if ok and BPM_CLIIENT_ERR_SERVER if the server
* could not complete the request */
* could not complete the request */
bpm_client_err_e
bpm_
data_acquire
(
bpm_client_t
*
self
,
char
*
service
,
bpm_client_err_e
bpm_
acq_start
(
bpm_client_t
*
self
,
char
*
service
,
acq_req_t
*
acq_req
);
acq_req_t
*
acq_req
);
/* Check if apreviouly started acquisition finished.
/* Check if apreviouly started acquisition finished.
* Returns BPM_CLIENT_SUCCESS if ok and BPM_CLIIENT_ERR_AGAIN if the acquistion
* Returns BPM_CLIENT_SUCCESS if ok and BPM_CLIIENT_ERR_AGAIN if the acquistion
* did not complete */
* did not complete */
bpm_client_err_e
bpm_
check_data_acquire
(
bpm_client_t
*
self
,
char
*
service
);
bpm_client_err_e
bpm_
acq_check
(
bpm_client_t
*
self
,
char
*
service
);
/* Wait for the previouly started acquistion to complete with a maximum tolerated
/* Wait for the previouly started acquistion to complete with a maximum tolerated
* wait.
* wait.
* Returns BPM_CLIENT_SUCCESS if the acquistion finished under the specified
* Returns BPM_CLIENT_SUCCESS if the acquistion finished under the specified
* timeout or BPM_CLIIENT_ERR_TIMEOUT if the acquistion did not completed in time */
* timeout or BPM_CLIIENT_ERR_TIMEOUT if the acquistion did not completed in time */
bpm_client_err_e
bpm_
wait_data_acquire
_timed
(
bpm_client_t
*
self
,
char
*
service
,
bpm_client_err_e
bpm_
acq_check
_timed
(
bpm_client_t
*
self
,
char
*
service
,
int
timeout
);
int
timeout
);
/* Get an specific data block from a previously completed acquisiton by setting
/* Get an specific data block from a previously completed acquisiton by setting
...
@@ -421,17 +421,37 @@ bpm_client_err_e bpm_wait_data_acquire_timed (bpm_client_t *self, char *service,
...
@@ -421,17 +421,37 @@ bpm_client_err_e bpm_wait_data_acquire_timed (bpm_client_t *self, char *service,
* Returns BPM_CLIENT_SUCCESS if the block was read or BPM_CLIENT_ERR_SERVER
* Returns BPM_CLIENT_SUCCESS if the block was read or BPM_CLIENT_ERR_SERVER
* otherwise. The data read is returned in acq_trans->block.data along with
* otherwise. The data read is returned in acq_trans->block.data along with
* the number of bytes effectivly read in acq_trans->block.bytes_read */
* the number of bytes effectivly read in acq_trans->block.bytes_read */
bpm_client_err_e
bpm_get_data_block
(
bpm_client_t
*
self
,
char
*
service
,
bpm_client_err_e
bpm_acq_get_data_block
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
);
/* Get a whole curve a previously completed acquisition by setting
* the desired channel in acq_trans->req.channel.
* Returns BPM_CLIENT_SUCCESS if the block was read or BPM_CLIENT_ERR_SERVER
* otherwise. The data read is returned in acq_trans->block.data along with
* the number of bytes effectively read in acq_trans->block.bytes_read */
bpm_client_err_e
bpm_acq_get_curve
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
);
acq_trans_t
*
acq_trans
);
/*
Get a complete curve from a previously completed acquisiton by setting
/*
Perform a full acquisition process (Acquisition request, checking if
*
the the desired channel in acq_trans->req.channel
.
*
its done and receiving the full curve)
.
* Returns BPM_CLIENT_SUCCESS if the curve was read or BPM_CLIENT_ERR_SERVER
* Returns BPM_CLIENT_SUCCESS if the curve was read or BPM_CLIENT_ERR_SERVER
* otherwise. The data read is returned in acq_trans->block.data along with
* otherwise. The data read is returned in acq_trans->block.data along with
* the number of bytes effectivly read in acq_trans->block.bytes_read */
* the number of bytes effectivly read in acq_trans->block.bytes_read */
bpm_client_err_e
bpm_get_curve
(
bpm_client_t
*
self
,
char
*
service
,
bpm_client_err_e
bpm_full_acq
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
,
int
timeout
);
/* Compatibility version of the old bpm_full_acq. Performs a full acquisition
* if new_acq = 1 and a curve readout if new_acq = 0*/
bpm_client_err_e
bpm_full_acq_compat
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
,
int
timeout
,
bool
new_acq
);
acq_trans_t
*
acq_trans
,
int
timeout
,
bool
new_acq
);
/* Macros for compatibility */
#define bpm_data_acquire bpm_acq_start
#define bpm_check_data_acquire bpm_acq_check
#define bpm_check_data_acquire_timed bpm_acq_check_timed
#define bpm_get_data_block bpm_acq_get_data_block
#define bpm_get_curve bpm_full_acq_compat
/* Configure acquisition trigger. Trigger types are: 0 -> skip trigger,
/* Configure acquisition trigger. Trigger types are: 0 -> skip trigger,
* 1 -> external trigger, 2 -> data-driven trigger, 3 -> software trigger.
* 1 -> external trigger, 2 -> data-driven trigger, 3 -> software trigger.
* Returns BPM_CLIENT_SUCCESS if the trigger was correctly set or
* Returns BPM_CLIENT_SUCCESS if the trigger was correctly set or
...
@@ -490,29 +510,6 @@ bpm_client_err_e bpm_set_acq_sw_trig (bpm_client_t *self, char *service,
...
@@ -490,29 +510,6 @@ bpm_client_err_e bpm_set_acq_sw_trig (bpm_client_t *self, char *service,
bpm_client_err_e
bpm_get_acq_sw_trig
(
bpm_client_t
*
self
,
char
*
service
,
bpm_client_err_e
bpm_get_acq_sw_trig
(
bpm_client_t
*
self
,
char
*
service
,
uint32_t
*
sw_trig
);
uint32_t
*
sw_trig
);
/* New version of bpm_data_acquire that uses the general function caller
* bpm_func_exec */
bpm_client_err_e
bpm_acq_start
(
bpm_client_t
*
self
,
char
*
service
,
acq_req_t
*
acq_req
);
/* New version of bpm_check_data_acquire that uses the general function caller
* bpm_func_exec */
bpm_client_err_e
bpm_acq_check
(
bpm_client_t
*
self
,
char
*
service
);
/* New version of bpm_get_data_block that uses the general function caller
* bpm_func_exec */
bpm_client_err_e
bpm_acq_get_data_block
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
);
/* New version of bpm_get_curve that uses the general function caller
* bpm_func_exec */
bpm_client_err_e
bpm_acq_get_curve
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
);
/* Perform a full acquisition process (Acquisition request, checking if
* its done and receiving the full curve).
* Returns BPM_CLIENT_SUCCESS if the curve was read or BPM_CLIENT_ERR_SERVER
* otherwise. The data read is returned in acq_trans->block.data along with
* the number of bytes effectivly read in acq_trans->block.bytes_read */
bpm_client_err_e
bpm_full_acq
(
bpm_client_t
*
self
,
char
*
service
,
acq_trans_t
*
acq_trans
,
int
timeout
);
/********************** DSP Functions ********************/
/********************** DSP Functions ********************/
/* K<direction> functions */
/* K<direction> functions */
...
...
src/libs/libbpmclient/src/bpm_client_core.c
View file @
a8e753d6
This diff is collapsed.
Click to expand it.
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