rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
functional_sensor.h
Go to the documentation of this file.
1/**
2 * @file converter_sensor.h
3 *
4 * @date September 12, 2019
5 * @author Matthew Kennedy, (c) 2019
6 */
7
8#pragma once
9
12
13/**
14 * @brief Class for sensors that convert from some raw floating point
15 * value (ex: voltage, frequency, pulse width) to a sensor reading.
16 *
17 * To use this class, implement the conversion operation for your sensor
18 * as a class that inherits from SensorConverter, and implement convert
19 * to convert a raw reading from the sensor to a usable value (and valid bit).
20 *
21 * Register an instance of the new class with an interface
22 * that provides and posts raw values so the sensor can update.
23 */
24class FunctionalSensor : public FunctionalSensorImpl<SensorConverter> {
25public:
27
28 void showInfo(const char* sensorName) const override;
29};
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
void showInfo(const char *sensorName) const override
SensorType type() const
Definition sensor.h:162
efitick_t efidur_t
SensorType
Definition sensor_type.h:18