Home
last modified time | relevance | path

Searched refs:gain_set (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/adc/
H A Dhx711.c84 int gain_set; /* gain set on device */ member
159 for (i = 0; i < hx711_get_gain_to_pulse(hx711_data->gain_set); i++) in hx711_read()
208 hx711_data->gain_set = HX711_RESET_GAIN; in hx711_reset()
219 if (hx711_data->gain_set == 32) { in hx711_set_gain_for_channel()
220 hx711_data->gain_set = hx711_data->gain_chan_a; in hx711_set_gain_for_channel()
231 if (hx711_data->gain_set != 32) { in hx711_set_gain_for_channel()
232 hx711_data->gain_set = 32; in hx711_set_gain_for_channel()
291 *val2 = hx711_get_gain_to_scale(hx711_data->gain_set); in hx711_read_raw()
328 if (gain != hx711_data->gain_set) { in hx711_write_raw()
329 hx711_data->gain_set = gain; in hx711_write_raw()
[all …]