Searched refs:adc_offset (Results 1 – 1 of 1) sorted by relevance
40 static int adc_offset = 0; variable398 adc_offset = 0; in adc_get_offset()406 adc_offset = tls_read_adc_result(); // 获取adc转换结果 in adc_get_offset()407 signedToUnsignedData(&adc_offset); in adc_get_offset()410 return adc_offset; in adc_get_offset()437 voltage = ((double)average - (double)adc_offset)/4.0; in adc_get_inputVolt()440 voltage = ((double)average - (double)adc_offset)/4.0; in adc_get_inputVolt()469 …((voltValue - adc_offset) * 685 / 20 + 1200000) * 2; // 685:byte alignment, 20:byte alignment, 2:b… in adc_get_interVolt()