Home
last modified time | relevance | path

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

/device/soc/winnermicro/wm800/board/platform/drivers/adc/
Dwm_adc.c40 static int adc_offset = 0; variable
398 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()