Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/power/fuel_gauge/
H A Dfg_rk817.c207 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument
208 (adc_value * 1720 / 1000 / samp_res)
209 #define CURRENT_TO_ADC(current, samp_res) \ argument
210 (current * 1000 * samp_res / 1720)
212 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument
213 (adc_value / 1000 * 1720 / 3600 / samp_res)
214 #define CAPACITY_TO_ADC(capacity, samp_res) \ argument
215 (capacity * samp_res * 3600 / 1720 * 1000)
217 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument
218 (adc_value / 3600 * 1720 / samp_res)
[all …]