Commit e6833c94 authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: add acquisition FSM stop command

parent 555cfc75
......@@ -521,6 +521,15 @@ 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,
uint32_t *sw_trig);
/* Stops the acquisition FSM. Options are: 1 stop the FSM, 0
* generates nothing.
* 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_fsm_stop (bpm_client_t *self, char *service,
uint32_t fsm_stop);
bpm_client_err_e bpm_get_acq_fsm_stop (bpm_client_t *self, char *service,
uint32_t *fsm_stop);
/********************** DSP Functions ********************/
/* K<direction> functions */
......
......@@ -1024,6 +1024,20 @@ bpm_client_err_e bpm_get_acq_sw_trig (bpm_client_t *self, char *service,
sw_trig);
}
bpm_client_err_e bpm_set_acq_fsm_stop (bpm_client_t *self, char *service,
uint32_t fsm_stop)
{
return param_client_write (self, service, ACQ_OPCODE_FSM_STOP,
fsm_stop);
}
bpm_client_err_e bpm_get_acq_fsm_stop (bpm_client_t *self, char *service,
uint32_t *fsm_stop)
{
return param_client_read (self, service, ACQ_OPCODE_FSM_STOP,
fsm_stop);
}
static bpm_client_err_e _bpm_acq_start (bpm_client_t *self, char *service, acq_req_t *acq_req)
{
assert (self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment