Lines Matching +full:1 +full:_chan

50 #define ADS1015_CFG_COMP_QUE_MASK	GENMASK(1, 0)
64 #define ADS1015_CFG_COMP_POL_HIGH 1
68 #define ADS1015_CFG_COMP_MODE_WINDOW 1
72 #define ADS1015_SINGLESHOT 1
140 static const int ads1015_comp_queue[] = { 1, 2, 4 };
166 * constant _fitbits by constant 1 in each successful compilation case.
182 #define ADS1015_V_CHAN(_chan, _addr, _realbits, _shift, _event_spec, _num_event_specs) { \ argument
184 .indexed = 1, \
186 .channel = _chan, \
203 .datasheet_name = "AIN"#_chan, \
206 #define ADS1015_V_DIFF_CHAN(_chan, _chan2, _addr, _realbits, _shift, _event_spec, _num_event_specs)… argument
208 .differential = 1, \
209 .indexed = 1, \
211 .channel = _chan, \
229 .datasheet_name = "AIN"#_chan"-AIN"#_chan2, \
318 ADS1015_V_DIFF_CHAN(0, 1, ADS1015_AIN0_AIN1, 12, 4,
322 ADS1015_V_DIFF_CHAN(1, 3, ADS1015_AIN1_AIN3, 12, 4,
328 ADS1015_V_CHAN(1, ADS1015_AIN1, 12, 4,
338 ADS1015_V_DIFF_CHAN(0, 1, ADS1015_AIN0_AIN1, 16, 0,
342 ADS1015_V_DIFF_CHAN(1, 3, ADS1015_AIN1_AIN3, 16, 0,
348 ADS1015_V_CHAN(1, ADS1015_AIN1, 16, 0,
358 ADS1015_V_DIFF_CHAN(0, 1, ADS1015_AIN0_AIN1, 12, 4, NULL, 0),
360 ADS1015_V_DIFF_CHAN(1, 3, ADS1015_AIN1_AIN3, 12, 4, NULL, 0),
363 ADS1015_V_CHAN(1, ADS1015_AIN1, 12, 4, NULL, 0),
436 usleep_range(conv_time, conv_time + 1); in ads1015_get_adc_result()
484 (chan->scan_type.realbits - 1), 1000000); in ads1015_set_scale()
567 chan->scan_type.realbits - 1); in ads1015_read_raw()
580 *val2 = chan->scan_type.realbits - 1; in ads1015_read_raw()
678 if (val >= 1 << (realbits - 1) || val < -1 << (realbits - 1)) { in ads1015_write_event()
691 for (i = 0; i < ARRAY_SIZE(ads1015_comp_queue) - 1; i++) { in ads1015_write_event()
719 ret = 1; in ads1015_read_event_config()
752 low_thresh = max(-1 << (chan->scan_type.realbits - 1), in ads1015_enable_event_config()
753 high_thresh - 1); in ads1015_enable_event_config()
906 int i = -1; in ads1015_client_get_channels_config()
1017 data->thresh_data[i].low_thresh = -1 << (realbits - 1); in ads1015_probe()
1018 data->thresh_data[i].high_thresh = (1 << (realbits - 1)) - 1; in ads1015_probe()
1047 1 << ADS1015_CFG_COMP_LAT_SHIFT; in ads1015_probe()