Searched refs:samp_res (Results 1 – 1 of 1) sorted by relevance
207 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument208 (adc_value * 1720 / 1000 / samp_res)209 #define CURRENT_TO_ADC(current, samp_res) \ argument210 (current * 1000 * samp_res / 1720)212 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument213 (adc_value / 1000 * 1720 / 3600 / samp_res)214 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument215 (capacity * samp_res * 3600 / 1720 * 1000)217 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument218 (adc_value / 3600 * 1720 / samp_res)[all …]