|
These API calls make life easy -
int32ADC_CountsTo_mVolts(int32adcCounts)
Description: ConvertstheADCoutput tomVasa32-bit integer.Forexample,if theADCmeasured
0.534V, thereturnvaluewouldbe534mV.
Parameters: int32adcCounts:ResultfromtheADCconversion.
ReturnValue: int32:Result inmV.
SideEffects: None
int32ADC_CountsTo_uVolts(int32adcCounts)
Description: ConvertstheADCoutput toµVasa32-bit integer.Forexample,if theADCmeasured
ñ0.02345V, thereturnvaluewouldbeñ23450µV.
Parameters: int32adcCounts:ResultfromtheADCconversion.
ReturnValue: int32:Result inµV.
SideEffects: None
floatADC_CountsTo_Volts(int32adcCounts)
Description: ConvertstheADCoutput tovoltsasafloatingpointnumber.Forexample,if theADC
measuresavoltageof 1.2345V,thereturnedresult wouldbe+1.2345V.
Parameters: int32adcCounts:ResultfromtheADCconversion.
ReturnValue: Float: Resultof thelast ADCconversion.
SideEffects: None
Regards, Dana.
|