Commit a39e699c authored by Lucas Russo's avatar Lucas Russo

libbpmclient: add new si57x_get_freq ()

parent 02b19d6b
......@@ -369,8 +369,10 @@ bpm_client_err_e bpm_get_ad9510_pll_clk_sel (bpm_client_t *self, char *service,
/* FMC SI571 Control.
* Returns BPM_CLIENT_SUCCESS if ok and BPM_CLIIENT_ERR_SERVER if
* if server could not complete the request */
bpm_client_err_e bpm_set_si571_set_freq (bpm_client_t *self, char *service,
double si571_set_freq);
bpm_client_err_e bpm_set_si571_freq (bpm_client_t *self, char *service,
double si571_freq);
bpm_client_err_e bpm_get_si571_freq (bpm_client_t *self, char *service,
double *si571_freq);
bpm_client_err_e bpm_set_si571_defaults (bpm_client_t *self, char *service,
double si571_defaults);
......
......@@ -584,10 +584,16 @@ PARAM_FUNC_CLIENT_READ(ad9510_pll_clk_sel)
}
/* SI571 Set frequency */
PARAM_FUNC_CLIENT_WRITE_DOUBLE(si571_set_freq)
PARAM_FUNC_CLIENT_WRITE_DOUBLE(si571_freq)
{
return param_client_write_double (self, service, FMC_ACTIVE_CLK_OPCODE_SI571_SET_FREQ,
si571_set_freq);
return param_client_write_double (self, service, FMC_ACTIVE_CLK_OPCODE_SI571_FREQ,
si571_freq);
}
PARAM_FUNC_CLIENT_READ_DOUBLE(si571_freq)
{
return param_client_read_double (self, service, FMC_ACTIVE_CLK_OPCODE_SI571_FREQ,
si571_freq);
}
/* SI571 Get defaults */
......
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