Commit 0e9407c4 authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: add FMC250M_4CH ADC RST and ADC DIV RST functions

parent 303655eb
......@@ -374,6 +374,23 @@ bpm_client_err_e bpm_set_si571_set_freq (bpm_client_t *self, char *service,
bpm_client_err_e bpm_set_si571_defaults (bpm_client_t *self, char *service,
double si571_defaults);
/******************** FMC250M SMIO Functions ******************/
/* ADC ISLA216P Control */
/* These set of functions read (get) or write (set) some ADC ISLA216P
* functionalities. Check ISLA216P datasheet for details.
* 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_rst_adcs (bpm_client_t *self, char *service,
uint32_t rst_adcs);
bpm_client_err_e bpm_get_rst_adcs (bpm_client_t *self, char *service,
uint32_t *rst_adcs);
bpm_client_err_e bpm_set_rst_div_adcs (bpm_client_t *self, char *service,
uint32_t rst_div_adcs);
bpm_client_err_e bpm_get_rst_div_adcs (bpm_client_t *self, char *service,
uint32_t *rst_div_adcs);
/********************** ACQ SMIO Functions ********************/
/* Acquisition request */
......
......@@ -854,6 +854,34 @@ PARAM_FUNC_CLIENT_WRITE_DOUBLE(si571_defaults)
si571_defaults);
}
/*************************** FMC250M Chips Functions *************************/
/* ISLA216P RST ADCs */
PARAM_FUNC_CLIENT_WRITE(rst_adcs)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_RST_ADCS,
rst_adcs);
}
PARAM_FUNC_CLIENT_READ(rst_adcs)
{
return param_client_read (self, service, FMC250M_4CH_OPCODE_RST_ADCS,
rst_adcs);
}
/* ISLA216P RST ADCs */
PARAM_FUNC_CLIENT_WRITE(rst_div_adcs)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_RST_DIV_ADCS,
rst_div_adcs);
}
PARAM_FUNC_CLIENT_READ(rst_div_adcs)
{
return param_client_read (self, service, FMC250M_4CH_OPCODE_RST_DIV_ADCS,
rst_div_adcs);
}
/****************** ACQ SMIO Functions ****************/
#define MIN_WAIT_TIME 1 /* in ms */
#define MSECS 1000 /* in seconds */
......
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