2015-07-10 06:01:56 -07:00
|
|
|
/*
|
2019-09-22 06:56:06 -07:00
|
|
|
* @file boards.h
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
2019-09-22 06:56:06 -07:00
|
|
|
* @date Nov 15, 2013
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BOARDS_H_
|
|
|
|
#define BOARDS_H_
|
|
|
|
|
2019-09-22 06:56:06 -07:00
|
|
|
#include "engine_configuration.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-02-28 18:09:31 -08:00
|
|
|
#define ADC_CHANNEL_VREF 0
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-09-22 06:56:06 -07:00
|
|
|
float getVoltageDivided(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
|
2019-09-22 07:02:07 -07:00
|
|
|
float getVoltage(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
int getAdcValue(const char *msg, adc_channel_e channel);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* BOARDS_H_ */
|