Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
sm_io/*/tim_rcv: add defaults for phase_meas/deglitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Aug 28, 2017
1 parent c014f28 commit 3e24234
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/sm_io/src/sm_io/c/modules/tim_rcv/sm_io_tim_rcv_defaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,21 @@ smio_err_e tim_rcv_config_defaults (char *broker_endp, char *service,
halcs_client_t *config_client = halcs_client_new_log_mode (broker_endp, 0,
log_file_name, SMIO_TIM_RCV_LIBHALCSCLIENT_LOG_MODE);
ASSERT_ALLOC(config_client, err_alloc_client);
UNUSED (client_err);

#if 0
client_err = halcs_set_phase_meas_navg (config_client, service, TIM_RCV_DFLT_PHASE_MEAS_NAVG);
ASSERT_TEST(client_err == HALCS_CLIENT_SUCCESS, "Could not set phase meas number of averages",
err_param_set, SMIO_ERR_CONFIG_DFLT);

client_err = halcs_set_dmtd_a_deglitcher_thres (config_client, service, TIM_RCV_DFLT_DMTD_A_DEGLITCH_THRES);
ASSERT_TEST(client_err == HALCS_CLIENT_SUCCESS, "Could not set DMTD A deglitcher threshold",
err_param_set, SMIO_ERR_CONFIG_DFLT);

client_err = halcs_set_dmtd_b_deglitcher_thres (config_client, service, TIM_RCV_DFLT_DMTD_B_DEGLITCH_THRES);
ASSERT_TEST(client_err == HALCS_CLIENT_SUCCESS, "Could not set DMTD B deglitcher threshold",
err_param_set, SMIO_ERR_CONFIG_DFLT);

err_param_set:
halcs_client_destroy (&config_client);
#endif
err_alloc_client:
DBE_DEBUG (DBG_SM_IO | DBG_LVL_INFO, "[sm_io:tim_rcv_defaults] Exiting Config thread %s\n",
service);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#ifndef _TIM_RCV_DEFAULTS_H_
#define _TIM_RCV_DEFAULTS_H_

#define TIM_RCV_DFLT_PHASE_MEAS_NAVG 10
#define TIM_RCV_DFLT_DMTD_A_DEGLITCH_THRES 10
#define TIM_RCV_DFLT_DMTD_B_DEGLITCH_THRES 10

smio_err_e tim_rcv_config_defaults (char *broker_endp, char *service,
const char *log_file_name);

Expand Down

0 comments on commit 3e24234

Please sign in to comment.