Searched refs:unipolar (Results 1 – 5 of 5) sorted by relevance
214 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); in ad7791_read_raw() local225 if (unipolar) in ad7791_read_raw()247 if (unipolar) in ad7791_read_raw()341 if ((st->info->flags & AD7791_FLAG_HAS_UNIPOLAR) && pdata->unipolar) in ad7791_setup()
301 if (pdata->unipolar) in ad7793_setup()404 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR); in ad7793_read_raw() local435 scale_uv >>= (chan->scan_type.realbits - (unipolar ? 0 : 1)); in ad7793_read_raw()440 if (!unipolar) in ad7793_read_raw()450 shift = chan->scan_type.realbits - (unipolar ? 0 : 1); in ad7793_read_raw()
15 bool unipolar; member
103 bool unipolar; member
476 static unsigned int ad7192_get_temp_scale(bool unipolar) in ad7192_get_temp_scale() argument478 return unipolar ? 2815 * 2 : 2815; in ad7192_get_temp_scale()557 bool unipolar = !!(st->conf & AD7192_CONF_UNIPOLAR); in ad7192_read_raw() local572 *val2 = 1000000000 / ad7192_get_temp_scale(unipolar); in ad7192_read_raw()578 if (!unipolar) in ad7192_read_raw()584 *val -= 273 * ad7192_get_temp_scale(unipolar); in ad7192_read_raw()