rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions
SentTps Struct Reference

#include <tps.h>

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

Public Member Functions

 SentTps ()
 
bool isRedundant () const override
 
- 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
 
void unregister ()
 
SensorType type () const
 

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)
 
- Protected Member Functions inherited from Sensor
 Sensor (SensorType type)
 
- Static Protected Attributes inherited from Sensor
static bool s_inhibitSensorTimeouts = false
 

Detailed Description

Definition at line 34 of file tps.h.

Constructor & Destructor Documentation

◆ SentTps()

SentTps::SentTps ( )
inline

Definition at line 35 of file tps.h.

35 : StoredValueSensor(SensorType::Tps1, MS2NT(200)) {
36 }
Base class for sensors that compute a value on one thread, and want to make it available to consumers...

Member Function Documentation

◆ isRedundant()

bool SentTps::isRedundant ( ) const
inlineoverridevirtual

Reimplemented from Sensor.

Definition at line 38 of file tps.h.

38 {
39 return true;
40 }

The documentation for this struct was generated from the following file: