Lines Matching refs:comp_mode
238 unsigned int comp_mode; member
256 int comp_mode) in ads1015_event_channel_enable() argument
261 data->comp_mode = comp_mode; in ads1015_event_channel_enable()
353 data->comp_mode << in ads1015_get_adc_result()
626 ret = (data->comp_mode == ADS1015_CFG_COMP_MODE_WINDOW); in ads1015_read_event_config()
639 const struct iio_chan_spec *chan, int comp_mode) in ads1015_enable_event_config() argument
648 (data->comp_mode == ADS1015_CFG_COMP_MODE_TRAD && in ads1015_enable_event_config()
649 comp_mode == ADS1015_CFG_COMP_MODE_WINDOW)) in ads1015_enable_event_config()
655 if (comp_mode == ADS1015_CFG_COMP_MODE_TRAD) { in ads1015_enable_event_config()
673 ads1015_event_channel_enable(data, chan->address, comp_mode); in ads1015_enable_event_config()
685 const struct iio_chan_spec *chan, int comp_mode) in ads1015_disable_event_config() argument
695 if (data->comp_mode == ADS1015_CFG_COMP_MODE_TRAD && in ads1015_disable_event_config()
696 comp_mode == ADS1015_CFG_COMP_MODE_WINDOW) in ads1015_disable_event_config()
717 int comp_mode = (dir == IIO_EV_DIR_EITHER) ? in ads1015_write_event_config() local
730 ret = ads1015_enable_event_config(data, chan, comp_mode); in ads1015_write_event_config()
732 ret = ads1015_disable_event_config(data, chan, comp_mode); in ads1015_write_event_config()
756 dir = data->comp_mode == ADS1015_CFG_COMP_MODE_TRAD ? in ads1015_event_handler()