Lines Matching refs:invert
60 bool invert; member
142 env->level = (env->high + env->low + !env->invert) / 2; in envelope_detector_setup_compare()
150 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare()
178 if (!envelope_detector_comp_latch(env) ^ !env->invert) in envelope_detector_timeout()
207 env->high = env->dac_max + env->invert; in envelope_detector_read_raw()
208 env->low = -1 + env->invert; in envelope_detector_read_raw()
215 *val = env->invert ? env->dac_max - env->level : env->level; in envelope_detector_read_raw()
237 return sprintf(buf, "%u\n", env->invert); in envelope_show_invert()
246 unsigned long invert; in envelope_store_invert() local
250 ret = kstrtoul(buf, 0, &invert); in envelope_store_invert()
253 if (invert > 1) in envelope_store_invert()
256 trigger = invert ? env->comp_irq_trigger_inv : env->comp_irq_trigger; in envelope_store_invert()
259 if (invert != env->invert) in envelope_store_invert()
262 env->invert = invert; in envelope_store_invert()