rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
sensors
core
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
10
#include "
converters/sensor_converter_func.h
"
11
#include "
functional_sensor_impl.h
"
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
*/
24
class
FunctionalSensor
:
public
FunctionalSensorImpl
<SensorConverter> {
25
public
:
26
FunctionalSensor
(
SensorType
type
,
efidur_t
timeoutPeriod);
27
28
void
showInfo
(
const
char
* sensorName)
const override
;
29
};
FunctionalSensor
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
Definition
functional_sensor.h:24
FunctionalSensor::showInfo
void showInfo(const char *sensorName) const override
Definition
sensor_info_printing.cpp:26
FunctionalSensorImpl
Definition
functional_sensor_impl.h:10
Sensor::type
SensorType type() const
Definition
sensor.h:162
functional_sensor_impl.h
efidur_t
efitick_t efidur_t
Definition
rusefi_types.h:42
sensor_converter_func.h
SensorType
SensorType
Definition
sensor_type.h:18
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8