rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
FunctionalSensorBase Class Referenceabstract

#include <functional_sensor_base.h>

Inheritance diagram for FunctionalSensorBase:
Inheritance graph
[legend]
Collaboration diagram for FunctionalSensorBase:
Collaboration graph
[legend]

Public Member Functions

virtual void postRawValue (float inputValue, efitick_t timestamp)=0
 
- Public Member Functions inherited from StoredValueSensor
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)
 
- Public Member Functions inherited from Sensor
bool Register ()
 
const chargetSensorName () const
 
virtual bool hasSensor () const
 
virtual float getRaw () const
 
virtual bool isRedundant () const
 
void unregister ()
 
SensorType type () const
 

Protected Member Functions

 FunctionalSensorBase (SensorType type, efidur_t timeoutPeriod)
 
- Protected Member Functions inherited from Sensor
 Sensor (SensorType type)
 

Additional Inherited Members

- Static Public Member Functions inherited from Sensor
static void showAllSensorInfo ()
 
static void showInfo (SensorType type)
 
static void resetRegistry ()
 
static const SensorgetSensorOfType (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 chargetSensorName (SensorType type)
 
- Static Protected Attributes inherited from Sensor
static bool s_inhibitSensorTimeouts = false
 

Detailed Description

Definition at line 9 of file functional_sensor_base.h.

Constructor & Destructor Documentation

◆ FunctionalSensorBase()

FunctionalSensorBase::FunctionalSensorBase ( SensorType  type,
efidur_t  timeoutPeriod 
)
protected

Definition at line 9 of file functional_sensor_base.cpp.

10 : StoredValueSensor(type, timeoutPeriod) {
11}
SensorType type() const
Definition sensor.h:162
Base class for sensors that compute a value on one thread, and want to make it available to consumers...

Member Function Documentation

◆ postRawValue()

virtual void FunctionalSensorBase::postRawValue ( float  inputValue,
efitick_t  timestamp 
)
pure virtual

The documentation for this class was generated from the following files: