Lines Matching defs:level
11 * The DAC is used to find the peak level of an alternating voltage input
64 int level;
133 * Do a binary search for the peak input level, and stop
134 * when that level is "trapped" between two adjacent DAC
137 * env->level ends up as env->low when the termination
139 * ceiling when invert is not active so that env->level
142 env->level = (env->high + env->low + !env->invert) / 2;
149 /* Set a "safe" DAC level (if there is such a thing)... */
157 /* ...set the real DAC level... */
158 ret = iio_write_channel_raw(env->dac, env->level);
168 env->level = ret;
179 env->low = env->level;
181 env->high = env->level;
211 if (env->level < 0) {
212 ret = env->level;
215 *val = env->invert ? env->dac_max - env->level : env->level;