hwdriver: Add configuration key for number of powerline cycles

High precision multimeters have a special setting, called "number of
powerline cycles" (NPLC) which determines the integration time of the
ADC in terms of the power line period. Some devices need their NPLC
adjusted from the default value before they can measure at their full
rated precision.
This commit is contained in:
Alexandru Gagniuc 2016-03-04 23:25:15 -08:00 committed by Uwe Hermann
vanhempi 8b0ad3a559
commit fadb19ac96
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa

Näytä tiedosto

@ -1015,6 +1015,9 @@ enum sr_configkey {
/** The device supports setting a probe factor. */
SR_CONF_PROBE_FACTOR,
/** Number of powerline cycles for ADC integration time. */
SR_CONF_ADC_POWERLINE_CYCLES,
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Acquisition modes, sample limiting ----------------------------*/

Näytä tiedosto

@ -189,6 +189,8 @@ static struct sr_key_info sr_key_info_config[] = {
"Data source", NULL},
{SR_CONF_PROBE_FACTOR, SR_T_UINT64, "probe_factor",
"Probe factor", NULL},
{SR_CONF_ADC_POWERLINE_CYCLES, SR_T_FLOAT, "nplc",
"Number of ADC powerline cycles", NULL},
/* Acquisition modes, sample limiting */
{SR_CONF_LIMIT_MSEC, SR_T_UINT64, "limit_time",