Searched defs:adc_value (Results 1 – 2 of 2) sorted by relevance
74 #define ADC_TO_CURRENT(adc_value, samp_res) \ argument79 #define ADC_TO_CAPACITY(adc_value, samp_res) \ argument84 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) \ argument86 #define ADC_TO_CAPACITY_MAH(adc_value, samp_res) \ argument
73 #define ADC_TO_CURRENT(adc_value, samp_res) ((adc_value) * 172 / 1000 / (samp_res)) argument76 #define ADC_TO_CAPACITY(adc_value, samp_res) ((adc_value) / 1000 * 172 / 3600 / (samp_res)) argument79 #define ADC_TO_CAPACITY_UAH(adc_value, samp_res) ((adc_value) / 3600 * 172 / (samp_res)) argument80 #define ADC_TO_CAPACITY_MAH(adc_value, samp_res) ((adc_value) / 1000 * 172 / 3600 / (samp_res)) argument