This function reads the battery voltage and reference voltage.
Definition at line 137 of file voltage.c. References adc_Read(), ADC_VOLTAGE, ADC_VREF, mg_u16Ref, and mg_u16Value. Referenced by main(). { mg_u16Ref = (adc_Read(ADC_VREF)-695U) * 26/10; mg_u16Value = adc_Read(ADC_VOLTAGE); }
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() |