Lines Matching refs:invert
59 bool invert;
135 * When invert is active, use the midpoint floor so that
138 * ceiling when invert is not active so that env->level
141 env->level = (env->high + env->low + !env->invert) / 2;
149 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max);
177 if (!envelope_detector_comp_latch(env) ^ !env->invert)
196 * When invert is active, start with high=max+1 and low=0
199 * start with high=max and low=-1 when invert is not active
206 env->high = env->dac_max + env->invert;
207 env->low = -1 + env->invert;
214 *val = env->invert ? env->dac_max - env->level : env->level;
236 return sprintf(buf, "%u\n", env->invert);
245 unsigned long invert;
249 ret = kstrtoul(buf, 0, &invert);
252 if (invert > 1)
255 trigger = invert ? env->comp_irq_trigger_inv : env->comp_irq_trigger;
258 if (invert != env->invert)
261 env->invert = invert;
302 { .name = "invert",