Lines Matching refs:chan
46 static int ina237_channel_get(const struct device *dev, enum sensor_channel chan, in ina237_channel_get() argument
52 switch (chan) { in ina237_channel_get()
148 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_VOLTAGE)) { in ina237_read_data()
156 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_CURRENT)) { in ina237_read_data()
164 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_POWER)) { in ina237_read_data()
172 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_DIE_TEMP)) { in ina237_read_data()
181 if ((data->chan == SENSOR_CHAN_ALL) || (data->chan == SENSOR_CHAN_VSHUNT)) { in ina237_read_data()
199 static int ina237_sample_fetch(const struct device *dev, enum sensor_channel chan) in ina237_sample_fetch() argument
203 if (chan != SENSOR_CHAN_ALL && chan != SENSOR_CHAN_VOLTAGE && chan != SENSOR_CHAN_CURRENT && in ina237_sample_fetch()
204 chan != SENSOR_CHAN_POWER && in ina237_sample_fetch()
206 chan != SENSOR_CHAN_VSHUNT && in ina237_sample_fetch()
208 chan != SENSOR_CHAN_DIE_TEMP) { in ina237_sample_fetch()
212 data->chan = chan; in ina237_sample_fetch()
221 static int ina237_attr_set(const struct device *dev, enum sensor_channel chan, in ina237_attr_set() argument
238 static int ina237_attr_get(const struct device *dev, enum sensor_channel chan, in ina237_attr_get() argument