Lines Matching refs:ch_cfg
37 *freq = (cfg->ch_cfg->fin_sel * (cfg->fref / 1000.0) * in fdc2x1x_raw_to_freq()
40 *freq = cfg->ch_cfg->fin_sel * (cfg->fref / 1000.0) * in fdc2x1x_raw_to_freq()
42 (cfg->ch_cfg[ch].offset / pow(2, 16))); in fdc2x1x_raw_to_freq()
59 *capacitance = 1 / ((cfg->ch_cfg->inductance / 1000000.0) * in fdc2x1x_raw_to_capacitance()
739 ret = fdc2x1x_set_fin_sel(dev, ch, cfg->ch_cfg[ch].fin_sel); in fdc2x1x_init_config()
745 cfg->ch_cfg[ch].fref_divider); in fdc2x1x_init_config()
750 ret = fdc2x1x_set_idrive(dev, ch, cfg->ch_cfg[ch].idrive); in fdc2x1x_init_config()
756 cfg->ch_cfg[ch].settle_count); in fdc2x1x_init_config()
761 ret = fdc2x1x_set_rcount(dev, ch, cfg->ch_cfg[ch].rcount); in fdc2x1x_init_config()
768 cfg->ch_cfg[ch].offset); in fdc2x1x_init_config()
1012 .ch_cfg = ch_cfg_##n, \