Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/iio/addac/
Dad74413r.c143 #define AD74413R_ADC_RESULT_MAX GENMASK(15, 0) macro
622 *val = -((int)AD74413R_ADC_RESULT_MAX); in ad74413r_range_to_voltage_offset_raw()
625 *val = -((int)AD74413R_ADC_RESULT_MAX / 2); in ad74413r_range_to_voltage_offset_raw()
666 *val2 = AD74413R_ADC_RESULT_MAX; in ad74413r_get_input_voltage_scale()
703 *val2 = AD74413R_ADC_RESULT_MAX * st->sense_resistor_ohms; in ad74413r_get_input_current_scale()
728 *val = voltage_offset * (int)AD74413R_ADC_RESULT_MAX / voltage_range; in ad74413_get_input_current_offset()
863 if (adc_result == AD74413R_ADC_RESULT_MAX) in ad74413r_adc_to_resistance_result()
864 adc_result = AD74413R_ADC_RESULT_MAX - 1; in ad74413r_adc_to_resistance_result()
867 AD74413R_ADC_RESULT_MAX - adc_result); in ad74413r_adc_to_resistance_result()