fome-fw/firmware/controllers/sensors/map.h

29 lines
503 B
C
Raw Normal View History

2014-08-29 07:52:33 -07:00
#ifndef MAP_H_
#define MAP_H_
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#include "sensor_types.h"
/**
* @return Raw MAP sensor value right now
*/
float getRawMap(void);
float getBaroPressure(void);
/**
* @return MAP value averaged within a window of measurement
*/
float getMap(void);
float getMapVoltage(void);
float getMapByVoltage(float voltage);
float decodePressure(float voltage, air_pressure_sensor_config_s * config);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif