rusEFI
The most advanced open source ECU
|
#include <functional_sensor_impl.h>
Public Member Functions | |
FunctionalSensorImpl (SensorType type, efidur_t timeoutPeriod) | |
void | postRawValue (float inputValue, efitick_t timestamp) override |
void | setFunction (ConverterType &func) |
ConverterType * | getFunction () const |
float | getRaw () const override final |
![]() | |
SensorResult | get () const final override |
StoredValueSensor (SensorType type, efidur_t timeoutNt) | |
void | invalidate () |
void | invalidate (UnexpectedCode why) |
void | setValidValue (float value, efitick_t timestamp) |
void | showInfo (const char *sensorName) const override |
virtual void | setTimeout (int timeoutMs) |
![]() | |
bool | Register () |
const char * | getSensorName () const |
virtual bool | hasSensor () const |
virtual bool | isRedundant () const |
void | unregister () |
SensorType | type () const |
Private Attributes | |
ConverterType * | m_function = nullptr |
float | m_rawValue = 0 |
Additional Inherited Members | |
![]() | |
static void | showAllSensorInfo () |
static void | showInfo (SensorType type) |
static void | resetRegistry () |
static const Sensor * | getSensorOfType (SensorType type) |
static SensorResult | get (SensorType type) |
static float | getOrZero (SensorType type) |
static float | getRaw (SensorType type) |
static bool | isRedundant (SensorType type) |
static bool | hasSensor (SensorType type) |
static void | setMockValue (SensorType type, float value, bool mockRedundant=false) |
static void | setInvalidMockValue (SensorType type) |
static void | resetMockValue (SensorType type) |
static void | resetAllMocks () |
static void | inhibitTimeouts (bool inhibit) |
static const char * | getSensorName (SensorType type) |
![]() | |
FunctionalSensorBase (SensorType type, efidur_t timeoutPeriod) | |
![]() | |
Sensor (SensorType type) | |
![]() | |
static bool | s_inhibitSensorTimeouts = false |
Definition at line 10 of file functional_sensor_impl.h.
FunctionalSensorImpl< ConverterType >::FunctionalSensorImpl | ( | SensorType | type, |
efidur_t | timeoutPeriod | ||
) |
Definition at line 2 of file functional_sensor_impl.hpp.
ConverterType * FunctionalSensorImpl< ConverterType >::getFunction | ( | ) | const |
Definition at line 12 of file functional_sensor_impl.hpp.
|
finaloverridevirtual |
|
overridevirtual |
Implements FunctionalSensorBase.
Definition at line 22 of file functional_sensor_impl.hpp.
Referenced by flexCallback(), and sentPressureDecode().
void FunctionalSensorImpl< ConverterType >::setFunction | ( | ConverterType & | func | ) |
Definition at line 7 of file functional_sensor_impl.hpp.
Referenced by initFlexSensor(), initMaf(), initMap(), and initVbatt().
|
private |
Definition at line 23 of file functional_sensor_impl.h.
|
private |
Definition at line 25 of file functional_sensor_impl.h.