Commit e6af5e1c authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: add independent testmode function for each ADC

parent 1dd90fe8
......@@ -391,8 +391,14 @@ bpm_client_err_e bpm_set_rst_div_adcs (bpm_client_t *self, char *service,
bpm_client_err_e bpm_get_rst_div_adcs (bpm_client_t *self, char *service,
uint32_t *rst_div_adcs);
bpm_client_err_e bpm_set_test_mode (bpm_client_t *self, char *service,
uint32_t test_mode);
bpm_client_err_e bpm_set_test_mode0 (bpm_client_t *self, char *service,
uint32_t test_mode0);
bpm_client_err_e bpm_set_test_mode1 (bpm_client_t *self, char *service,
uint32_t test_mode1);
bpm_client_err_e bpm_set_test_mode2 (bpm_client_t *self, char *service,
uint32_t test_mode2);
bpm_client_err_e bpm_set_test_mode3 (bpm_client_t *self, char *service,
uint32_t test_mode3);
/********************** ACQ SMIO Functions ********************/
......
......@@ -883,10 +883,28 @@ PARAM_FUNC_CLIENT_READ(rst_div_adcs)
}
/* ISLA216P Test modes */
PARAM_FUNC_CLIENT_WRITE(test_mode)
PARAM_FUNC_CLIENT_WRITE(test_mode0)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_TESTMODE,
test_mode);
return param_client_write (self, service, FMC250M_4CH_OPCODE_TESTMODE0,
test_mode0);
}
PARAM_FUNC_CLIENT_WRITE(test_mode1)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_TESTMODE1,
test_mode1);
}
PARAM_FUNC_CLIENT_WRITE(test_mode2)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_TESTMODE2,
test_mode2);
}
PARAM_FUNC_CLIENT_WRITE(test_mode3)
{
return param_client_write (self, service, FMC250M_4CH_OPCODE_TESTMODE3,
test_mode3);
}
/****************** ACQ SMIO 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