2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file board.c
|
|
|
|
*
|
|
|
|
* @date Nov 15, 2013
|
2018-01-20 17:42:19 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "boards.h"
|
|
|
|
|
|
|
|
float testMafValue = 0;
|
2019-01-12 12:32:40 -08:00
|
|
|
float testCltValue = 0;
|
|
|
|
float testIatValue = 0;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-02-28 18:09:31 -08:00
|
|
|
float getVoltageDivided(const char *msg, adc_channel_e channel) {
|
2015-07-10 06:01:56 -07:00
|
|
|
switch(channel) {
|
|
|
|
case TEST_MAF_CHANNEL:
|
|
|
|
return testMafValue;
|
2019-01-12 12:32:40 -08:00
|
|
|
case TEST_CLT_CHANNEL:
|
|
|
|
return testCltValue;
|
|
|
|
case TEST_IAT_CHANNEL:
|
|
|
|
return testIatValue;
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
float getVoltage(const char *msg, int channel) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int getAdcValue(const char *msg, int channel) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|