rusEFI
The most advanced open source ECU
|
#include <function_pointer_sensor.h>
Public Member Functions | |
FunctionPointerSensor (SensorType type, float(*func)()) | |
SensorResult | get () const final |
void | showInfo (const char *) const override |
![]() | |
bool | Register () |
const char * | getSensorName () const |
virtual bool | hasSensor () const |
virtual float | getRaw () const |
virtual bool | isRedundant () const |
void | unregister () |
SensorType | type () const |
Private Attributes | |
float(* | m_func )() |
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) |
![]() | |
Sensor (SensorType type) | |
![]() | |
static bool | s_inhibitSensorTimeouts = false |
Definition at line 17 of file function_pointer_sensor.h.
|
inline |
Definition at line 19 of file function_pointer_sensor.h.
|
inlinefinalvirtual |
Implements Sensor.
Definition at line 23 of file function_pointer_sensor.h.
|
inlineoverridevirtual |
|
private |
Definition at line 39 of file function_pointer_sensor.h.
Referenced by get().