rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
init_aux.cpp File Reference

Functions

void initAuxSensors ()
 
void deinitAuxSensors ()
 

Variables

static FunctionalSensor auxSensors []
 
StoredValueSensor luaGauges []
 

Function Documentation

◆ deinitAuxSensors()

void deinitAuxSensors ( )

Definition at line 58 of file init_aux.cpp.

58 {
59 for (size_t i = 0; i < efi::size(engineConfiguration->auxAnalogInputs); i++) {
62 }
63}
static void UnsubscribeSensor(FunctionalSensorBase &sensor)
void unregister()
Definition sensor.cpp:135
static constexpr engine_configuration_s * engineConfiguration
static FunctionalSensor auxSensors[]
Definition init_aux.cpp:10

Referenced by stopSensors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initAuxSensors()

void initAuxSensors ( )

Definition at line 36 of file init_aux.cpp.

36 {
37 for (size_t i = 0; i < efi::size(engineConfiguration->auxAnalogInputs); i++) {
39
40 // Skip unconfigured channels
42 continue;
43 }
44
45 auto& sensor = auxSensors[i];
46 sensor.setFunction(identityFunction);
48
50 }
51
52 for (size_t i = 0; i < efi::size(luaGauges); i++) {
53 auto& sensor = luaGauges[i];
55 }
56}
bool isAdcChannelValid(adc_channel_e hwChannel)
Definition adc_inputs.h:23
uint16_t channel
Definition adc_inputs.h:104
static AdcSubscriptionEntry * SubscribeSensor(FunctionalSensorBase &sensor, adc_channel_e channel, float lowpassCutoffHZ, float voltsPerAdcVolt=0.0f)
bool Register()
Definition sensor.cpp:131
IdentityFunction identityFunction
StoredValueSensor luaGauges[]
Definition init_aux.cpp:21
static Lps25Sensor sensor(device)

Referenced by sensorStartUpOrReconfiguration().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ auxSensors

FunctionalSensor auxSensors[]
static
Initial value:
= {
{ SensorType::AuxAnalog1, MS2NT(50) },
{ SensorType::AuxAnalog2, MS2NT(50) },
{ SensorType::AuxAnalog3, MS2NT(50) },
{ SensorType::AuxAnalog4, MS2NT(50) },
{ SensorType::AuxAnalog5, MS2NT(50) },
{ SensorType::AuxAnalog6, MS2NT(50) },
{ SensorType::AuxAnalog7, MS2NT(50) },
{ SensorType::AuxAnalog8, MS2NT(50) },
}

Definition at line 10 of file init_aux.cpp.

10 {
11 { SensorType::AuxAnalog1, MS2NT(50) },
12 { SensorType::AuxAnalog2, MS2NT(50) },
13 { SensorType::AuxAnalog3, MS2NT(50) },
14 { SensorType::AuxAnalog4, MS2NT(50) },
15 { SensorType::AuxAnalog5, MS2NT(50) },
16 { SensorType::AuxAnalog6, MS2NT(50) },
17 { SensorType::AuxAnalog7, MS2NT(50) },
18 { SensorType::AuxAnalog8, MS2NT(50) },
19};

Referenced by deinitAuxSensors(), and initAuxSensors().

◆ luaGauges

StoredValueSensor luaGauges[]
Initial value:
= {
{ SensorType::LuaGauge1, MS2NT(5000) },
{ SensorType::LuaGauge2, MS2NT(5000) },
{ SensorType::LuaGauge3, MS2NT(5000) },
{ SensorType::LuaGauge4, MS2NT(5000) },
{ SensorType::LuaGauge5, MS2NT(5000) },
{ SensorType::LuaGauge6, MS2NT(5000) },
{ SensorType::LuaGauge7, MS2NT(5000) },
{ SensorType::LuaGauge8, MS2NT(5000) },
}

Definition at line 21 of file init_aux.cpp.

21 {
22 { SensorType::LuaGauge1, MS2NT(5000) },
23 { SensorType::LuaGauge2, MS2NT(5000) },
24 { SensorType::LuaGauge3, MS2NT(5000) },
25 { SensorType::LuaGauge4, MS2NT(5000) },
26 { SensorType::LuaGauge5, MS2NT(5000) },
27 { SensorType::LuaGauge6, MS2NT(5000) },
28 { SensorType::LuaGauge7, MS2NT(5000) },
29 { SensorType::LuaGauge8, MS2NT(5000) },
30};

Referenced by configureRusefiLuaHooks(), and initAuxSensors().

Go to the source code of this file.