4 static uint16 millivoltCalibration = 3300;
14 millivoltCalibration = vddMillivolts;
19 return ((
int32)adcResult * millivoltCalibration + 1023) / 2047;
#define ADC_REFERENCE_INTERNAL
int16 adcConvertToMillivolts(int16 adcResult)
void adcSetMillivoltCalibration(uint16 vddMillivolts)
uint16 adcRead(uint8 channel)
uint16 adcReadVddMillivolts()