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

23 lines
553 B
C
Raw Normal View History

2014-08-29 07:52:33 -07:00
#ifndef MAP_H_
#define MAP_H_
2015-01-27 13:04:15 -08:00
#include "engine_configuration.h"
2014-08-29 07:52:33 -07:00
#include "sensor_types.h"
2015-02-10 05:05:46 -08:00
void initMapDecoder(DECLARE_ENGINE_PARAMETER_F);
2014-08-29 07:52:33 -07:00
/**
* @return Raw MAP sensor value right now
*/
2015-02-10 05:05:46 -08:00
float getRawMap(DECLARE_ENGINE_PARAMETER_F);
float getBaroPressure(DECLARE_ENGINE_PARAMETER_F);
2014-08-29 07:52:33 -07:00
/**
* @return MAP value averaged within a window of measurement
*/
float getMap(void);
float getMapVoltage(void);
2015-02-10 05:05:46 -08:00
float getMapByVoltage(float voltage DECLARE_ENGINE_PARAMETER_S);
2014-08-29 07:52:33 -07:00
float decodePressure(float voltage, air_pressure_sensor_config_s * config);
#endif