Commit 90272b82 authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: add MONIT update function support

parent abddb82e
...@@ -593,6 +593,19 @@ bpm_client_err_e bpm_set_monit_amp_ch3 (bpm_client_t *self, char *service, ...@@ -593,6 +593,19 @@ bpm_client_err_e bpm_set_monit_amp_ch3 (bpm_client_t *self, char *service,
bpm_client_err_e bpm_get_monit_amp_ch3 (bpm_client_t *self, char *service, bpm_client_err_e bpm_get_monit_amp_ch3 (bpm_client_t *self, char *service,
uint32_t *monit_amp_ch3); uint32_t *monit_amp_ch3);
/* Monitoring Update values */
/* These set of functions read (get) the Monitoring update value, which
* effectively updates the AMP/POS values in the FPGA. After this,
* reading AMP/POS values are guaranteed to stay fixed until the next
* update.
* All of the functions returns BPM_CLIENT_SUCCESS if the
* parameter was correctly set or error (see bpm_client_err.h
* for all possible errors)*/
bpm_client_err_e bpm_set_monit_updt (bpm_client_t *self, char *service,
uint32_t monit_updt);
bpm_client_err_e bpm_get_monit_updt (bpm_client_t *self, char *service,
uint32_t *monit_updt);
/********************** SWAP Functions ********************/ /********************** SWAP Functions ********************/
/* Switching functions */ /* Switching functions */
......
...@@ -1373,6 +1373,17 @@ PARAM_FUNC_CLIENT_READ(monit_pos_sum) ...@@ -1373,6 +1373,17 @@ PARAM_FUNC_CLIENT_READ(monit_pos_sum)
return param_client_read (self, service, DSP_OPCODE_SET_GET_MONIT_POS_SUM, monit_pos_sum); return param_client_read (self, service, DSP_OPCODE_SET_GET_MONIT_POS_SUM, monit_pos_sum);
} }
/* Monitoring Update value */
PARAM_FUNC_CLIENT_WRITE(monit_updt)
{
return param_client_write (self, service, DSP_OPCODE_SET_GET_MONIT_UPDT, monit_updt);
}
PARAM_FUNC_CLIENT_READ(monit_updt)
{
return param_client_read (self, service, DSP_OPCODE_SET_GET_MONIT_UPDT, monit_updt);
}
/**************** Swap SMIO Functions ****************/ /**************** Swap SMIO Functions ****************/
/* Switching functions */ /* Switching functions */
......
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