24 #define ANALOG_INPUTS inputAnalog 25 #define ResPower rSense 26 #define gainOpamp gainCorrent 27 #define factorConv divResitiveV
void adcValue(void)
reading 3 values per channel and makes convert 0 a 1024 to a read voltage value, 0 to 3...
configuratoin the define relative hardware
#define ANALOG_INPUTS
Number od ADC in using MAX: 4.
Definition: adc.h:24
void adcStart(void)
start A/D module
uint16_t valueADC[ANALOG_INPUTS]
Array of adc read.
Definition: adc.h:29
uint16_t readInputVoltage(void)
Convert adc to voltage.
void debugADC(void)
function use for testing ADC
void adcInit(void)
this function is to initialization ADC
void adcReset(void)
stop A/D module
uint16_t readCorrentConsumer(void)
Convert adc value to corrent.