Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/addac/
Dad74413r.c143 #define AD74413R_ADC_RESULT_MAX GENMASK(15, 0) macro
640 *val = -((int)AD74413R_ADC_RESULT_MAX); in ad74413r_range_to_voltage_offset_raw()
643 *val = -((int)AD74413R_ADC_RESULT_MAX / 2); in ad74413r_range_to_voltage_offset_raw()
684 *val2 = AD74413R_ADC_RESULT_MAX; in ad74413r_get_input_voltage_scale()
721 *val2 = AD74413R_ADC_RESULT_MAX * st->sense_resistor_ohms; in ad74413r_get_input_current_scale()
746 *val = voltage_offset * (int)AD74413R_ADC_RESULT_MAX / voltage_range; in ad74413r_get_input_current_offset()
881 if (adc_result == AD74413R_ADC_RESULT_MAX) in ad74413r_adc_to_resistance_result()
882 adc_result = AD74413R_ADC_RESULT_MAX - 1; in ad74413r_adc_to_resistance_result()
885 AD74413R_ADC_RESULT_MAX - adc_result); in ad74413r_adc_to_resistance_result()