Commit e96f61f3 authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: add new data-driven trigger channel operation

parent 923d0aca
......@@ -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 */
......
......@@ -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);
......
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