From 7034e7f4736ded4c4c0c653c3336e19a359ea7d4 Mon Sep 17 00:00:00 2001 From: Lucas Russo <lerwys@gmail.com> Date: Fri, 6 May 2016 16:07:32 -0300 Subject: [PATCH] libs/libbpmclient/*: add FMC250M Sleep function --- src/libs/libbpmclient/include/bpm_client_core.h | 4 ++++ src/libs/libbpmclient/src/bpm_client_core.c | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/libs/libbpmclient/include/bpm_client_core.h b/src/libs/libbpmclient/include/bpm_client_core.h index 7384e92d..758f958e 100644 --- a/src/libs/libbpmclient/include/bpm_client_core.h +++ b/src/libs/libbpmclient/include/bpm_client_core.h @@ -392,6 +392,10 @@ 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); +bpm_client_err_e bpm_set_sleep_adcs (bpm_client_t *self, char *service, + uint32_t sleep_adcs); +bpm_client_err_e bpm_get_sleep_adcs (bpm_client_t *self, char *service, + uint32_t *sleep_adcs); bpm_client_err_e bpm_set_test_mode0 (bpm_client_t *self, char *service, uint32_t test_mode0); diff --git a/src/libs/libbpmclient/src/bpm_client_core.c b/src/libs/libbpmclient/src/bpm_client_core.c index bfb840fe..c9c34d9d 100644 --- a/src/libs/libbpmclient/src/bpm_client_core.c +++ b/src/libs/libbpmclient/src/bpm_client_core.c @@ -888,6 +888,19 @@ PARAM_FUNC_CLIENT_READ(rst_div_adcs) rst_div_adcs); } +/* ISLA216P Sleep ADCs */ +PARAM_FUNC_CLIENT_WRITE(sleep_adcs) +{ + return param_client_write (self, service, FMC250M_4CH_OPCODE_SLEEP_ADCS, + sleep_adcs); +} + +PARAM_FUNC_CLIENT_READ(sleep_adcs) +{ + return param_client_read (self, service, FMC250M_4CH_OPCODE_SLEEP_ADCS, + sleep_adcs); +} + /* ISLA216P Test modes */ PARAM_FUNC_CLIENT_WRITE(test_mode0) { -- GitLab