69 #define NUMBITS 10 // Default of Linduino AtMega 70 #define MAXADCVAL 1023 // ((2^NUMBITS) - 1) 71 #define AREF float(5) // ADC reference voltage, default to +5V on Linduino float LTC6115ToVolts(uint32_t val)
This function converts ADC code to Voltage without the converted voltage print statement.
float LTC6115ConvertToVolts(uint32_t val)
This function converts ADC code to Voltage.
float getVGain()
This function returns the voltage gain (V/V).
float LTC6115ToAmps(uint32_t val)
This function converts ADC code to Current without the converted current print statement.
void LTC6115ChangeVGain(float val)
This function changes the Voltage gain.
void LTC6115_initialize()
|Function Declarations|
float getIGain()
This function returns the current gain (V/A).
void LTC6115ChangeIGain(float val)
This function changes the Current gain.
float LTC6115ConvertToAmps(uint32_t val)
This function converts ADC code to Current.
uint32_t millsToHz(uint32_t val)
This function converts milliseconds to frequency (Hz).