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

Functions

template<>
const output_channels_sgetLiveData (size_t)
 
template<>
const knock_controller_sgetLiveData (size_t)
 
template<>
const tcu_controller_sgetLiveData (size_t)
 
template<>
const high_pressure_fuel_pump_sgetLiveData (size_t)
 
template<>
const launch_control_state_sgetLiveData (size_t)
 
template<>
const shift_torque_reduction_state_sgetLiveData (size_t)
 
template<>
const antilag_system_state_sgetLiveData (size_t)
 
template<>
const injector_model_sgetLiveData (size_t)
 
template<>
const boost_control_sgetLiveData (size_t)
 
template<>
const ac_control_sgetLiveData (size_t)
 
template<>
const fuel_computer_sgetLiveData (size_t)
 
template<>
const fan_control_sgetLiveData (size_t idx)
 
template<>
const fuel_pump_control_sgetLiveData (size_t)
 
template<>
const main_relay_sgetLiveData (size_t)
 
template<>
const engine_state_sgetLiveData (size_t)
 
template<>
const prime_injection_sgetLiveData (size_t)
 
template<>
const tps_accel_state_sgetLiveData (size_t)
 
template<>
const nitrous_control_state_sgetLiveData (size_t)
 
template<>
const dc_motors_sgetLiveData (size_t)
 
template<>
const trigger_central_sgetLiveData (size_t)
 
template<>
const trigger_state_sgetLiveData (size_t idx)
 
template<>
const vvt_sgetLiveData (size_t idx)
 
template<>
const trigger_state_primary_sgetLiveData (size_t)
 
template<>
const wall_fuel_state_sgetLiveData (size_t)
 
template<>
const idle_state_sgetLiveData (size_t)
 
template<>
const ignition_state_sgetLiveData (size_t)
 
template<>
const sent_state_sgetLiveData (size_t)
 
template<>
const closed_loop_idle_sgetLiveData (size_t)
 
template<>
const throttle_model_sgetLiveData (size_t)
 
template<>
const lambda_monitor_sgetLiveData (size_t)
 
template<>
const mc33810_state_sgetLiveData (size_t idx)
 
FragmentList getLiveDataFragments ()
 
template<>
const long_term_fuel_trim_state_sgetLiveData (size_t)
 
template<>
const short_term_fuel_trim_state_sgetLiveData (size_t)
 
template<>
const live_data_example_sgetLiveData (size_t)
 
template<>
const vvl_controller_state_sgetLiveData (size_t)
 

Variables

static const FragmentEntry fragments []
 

Function Documentation

◆ getLiveData() [1/35]

template<>
const fan_control_s * getLiveData ( size_t  idx)

Definition at line 103 of file live_data.cpp.

103 {
104 switch (idx) {
105 case 0: return &engine->module<FanControl1>().unmock();
106 case 1: return &engine->module<FanControl2>().unmock();
107 default: return nullptr;
108 }
109}
constexpr auto & module()
Definition engine.h:200
static EngineAccessor engine
Definition engine.h:413
Here is the call graph for this function:

◆ getLiveData() [2/35]

template<>
const trigger_state_s * getLiveData ( size_t  idx)

Definition at line 163 of file live_data.cpp.

163 {
164#if EFI_SHAFT_POSITION_INPUT
165 switch (idx) {
166 case 0: return &engine->triggerCentral.triggerState;
167 case 1: return &engine->triggerCentral.vvtState[0][0];
168 case 2: return &engine->triggerCentral.vvtState[0][1];
169 case 3: return &engine->triggerCentral.vvtState[1][0];
170 case 4: return &engine->triggerCentral.vvtState[1][1];
171 default: return nullptr;
172 }
173#else
174 UNUSED(idx);
175 return nullptr;
176#endif
177}
TriggerCentral triggerCentral
Definition engine.h:318
VvtTriggerDecoder vvtState[BANKS_COUNT][CAMS_PER_BANK]
PrimaryTriggerDecoder triggerState
UNUSED(samplingTimeSeconds)
Here is the call graph for this function:

◆ getLiveData() [3/35]

template<>
const vvt_s * getLiveData ( size_t  idx)

Definition at line 180 of file live_data.cpp.

180 {
181#if EFI_VVT_PID
182 switch (idx) {
183 case 0: return &engine->module<VvtController1>().unmock();
184 case 1: return &engine->module<VvtController2>().unmock();
185 case 2: return &engine->module<VvtController3>().unmock();
186 case 3: return &engine->module<VvtController4>().unmock();
187 default: return nullptr;
188 }
189#else
190 UNUSED(idx);
191 return nullptr;
192#endif
193}
Here is the call graph for this function:

◆ getLiveData() [4/35]

template<>
const mc33810_state_s * getLiveData ( size_t  idx)

Definition at line 268 of file live_data.cpp.

268 {
269#if (BOARD_MC33810_COUNT > 0)
270 return mc33810getLiveData(idx);
271#else
272 UNUSED(idx);
273 return nullptr;
274#endif
275}
const mc33810_state_s * mc33810getLiveData(size_t idx)
Definition mc33810.cpp:1021
Here is the call graph for this function:

◆ getLiveData() [5/35]

template<>
const output_channels_s * getLiveData ( size_t  )

Definition at line 18 of file live_data.cpp.

18 {
19 return &engine->outputChannels;
20}
TunerStudioOutputChannels outputChannels
Definition engine.h:109

◆ getLiveData() [6/35]

template<>
const knock_controller_s * getLiveData ( size_t  )

Definition at line 23 of file live_data.cpp.

23 {
24 return &engine->module<KnockController>().unmock();
25}
Here is the call graph for this function:

◆ getLiveData() [7/35]

template<>
const tcu_controller_s * getLiveData ( size_t  )

Definition at line 28 of file live_data.cpp.

28 {
29#if EFI_TCU
30 GearControllerBase *gearController = engine->gearController;
31 return gearController == nullptr ? nullptr : gearController->transmissionController;
32#else
33 return nullptr;
34#endif // EFI_TCU
35}
GearControllerBase * gearController
Definition engine.h:210
TransmissionControllerBase * transmissionController

◆ getLiveData() [8/35]

template<>
const high_pressure_fuel_pump_s * getLiveData ( size_t  )

Definition at line 38 of file live_data.cpp.

38 {
39#if EFI_HPFP
40 return &engine->module<HpfpController>().unmock();
41#else
42 return nullptr; // explicit null to confirm that this struct is handled
43#endif // EFI_HPFP
44}
Here is the call graph for this function:

◆ getLiveData() [9/35]

template<>
const launch_control_state_s * getLiveData ( size_t  )

Definition at line 47 of file live_data.cpp.

47 {
48#if EFI_LAUNCH_CONTROL
49 return &engine->launchController;
50#else
51 return nullptr;
52#endif
53}
LaunchControlBase launchController
Definition engine.h:220

◆ getLiveData() [10/35]

template<>
const shift_torque_reduction_state_s * getLiveData ( size_t  )

Definition at line 56 of file live_data.cpp.

56 {
57#if EFI_LAUNCH_CONTROL
59#else
60 return nullptr;
61#endif
62}
ShiftTorqueReductionController shiftTorqueReductionController
Definition engine.h:221

◆ getLiveData() [11/35]

template<>
const antilag_system_state_s * getLiveData ( size_t  )

Definition at line 65 of file live_data.cpp.

65 {
66#if EFI_ANTILAG_SYSTEM
68#else
69 return nullptr;
70#endif
71}
AntilagSystemBase antilagController
Definition engine.h:228

◆ getLiveData() [12/35]

template<>
const injector_model_s * getLiveData ( size_t  )

Definition at line 74 of file live_data.cpp.

74 {
75 return &engine->module<InjectorModelPrimary>().unmock();
76}
Here is the call graph for this function:

◆ getLiveData() [13/35]

template<>
const boost_control_s * getLiveData ( size_t  )

Definition at line 79 of file live_data.cpp.

79 {
80#if EFI_BOOST_CONTROL
81 return &engine->module<BoostController>().unmock();
82#else
83 return nullptr;
84#endif
85}
Here is the call graph for this function:

◆ getLiveData() [14/35]

template<>
const ac_control_s * getLiveData ( size_t  )

Definition at line 88 of file live_data.cpp.

88 {
89 return &engine->module<AcController>().unmock();
90}
Here is the call graph for this function:

◆ getLiveData() [15/35]

template<>
const fuel_computer_s * getLiveData ( size_t  )

Definition at line 93 of file live_data.cpp.

93 {
94#if EFI_ENGINE_CONTROL
95 return &engine->fuelComputer;
96#else
97 return nullptr;
98#endif
99}
FuelComputer fuelComputer
Definition engine.h:139

◆ getLiveData() [16/35]

template<>
const fuel_pump_control_s * getLiveData ( size_t  )

Definition at line 114 of file live_data.cpp.

114 {
115 return &engine->module<FuelPumpController>().unmock();
116}
Here is the call graph for this function:

◆ getLiveData() [17/35]

template<>
const main_relay_s * getLiveData ( size_t  )

Definition at line 120 of file live_data.cpp.

120 {
121 return &engine->module<MainRelayController>().unmock();
122}
Here is the call graph for this function:

◆ getLiveData() [18/35]

template<>
const engine_state_s * getLiveData ( size_t  )

Definition at line 125 of file live_data.cpp.

125 {
126 return &engine->engineState;
127}
EngineState engineState
Definition engine.h:344

◆ getLiveData() [19/35]

template<>
const prime_injection_s * getLiveData ( size_t  )

Definition at line 130 of file live_data.cpp.

130 {
131 return &engine->module<PrimeController>().unmock();
132}
Here is the call graph for this function:

◆ getLiveData() [20/35]

template<>
const tps_accel_state_s * getLiveData ( size_t  )

Definition at line 135 of file live_data.cpp.

135 {
136 return &engine->module<TpsAccelEnrichment>().unmock();
137}
Here is the call graph for this function:

◆ getLiveData() [21/35]

template<>
const nitrous_control_state_s * getLiveData ( size_t  )

Definition at line 140 of file live_data.cpp.

140 {
141#if EFI_LAUNCH_CONTROL
142 return &engine->module<NitrousController>().unmock();
143#else
144 return nullptr;
145#endif // EFI_LAUNCH_CONTROL
146}
Here is the call graph for this function:

◆ getLiveData() [22/35]

template<>
const dc_motors_s * getLiveData ( size_t  )

Definition at line 149 of file live_data.cpp.

149 {
150 return &engine->dc_motors;
151}
dc_motors_s dc_motors
Definition engine.h:346

◆ getLiveData() [23/35]

template<>
const trigger_central_s * getLiveData ( size_t  )

Definition at line 154 of file live_data.cpp.

154 {
155#if EFI_SHAFT_POSITION_INPUT
156 return &engine->triggerCentral;
157#else
158 return nullptr;
159#endif
160}

◆ getLiveData() [24/35]

template<>
const trigger_state_primary_s * getLiveData ( size_t  )

Definition at line 196 of file live_data.cpp.

196 {
197#if EFI_SHAFT_POSITION_INPUT
199#else
200 return nullptr;
201#endif
202}

◆ getLiveData() [25/35]

template<>
const wall_fuel_state_s * getLiveData ( size_t  )

Definition at line 205 of file live_data.cpp.

205 {
206#if EFI_ENGINE_CONTROL
208#else
209 return nullptr;
210#endif
211}
FuelSchedule injectionEvents
Definition engine.h:288
InjectionEvent elements[MAX_CYLINDER_COUNT]
WallFuel & getWallFuel()
Here is the call graph for this function:

◆ getLiveData() [26/35]

template<>
const idle_state_s * getLiveData ( size_t  )

Definition at line 214 of file live_data.cpp.

214 {
215#if EFI_IDLE_CONTROL
216 return &engine->module<IdleController>().unmock();
217#else
218 return nullptr;
219#endif
220}
Here is the call graph for this function:

◆ getLiveData() [27/35]

template<>
const ignition_state_s * getLiveData ( size_t  )

Definition at line 223 of file live_data.cpp.

223 {
224 return &engine->ignitionState;
225}
IgnitionState ignitionState
Definition engine.h:239

◆ getLiveData() [28/35]

template<>
const sent_state_s * getLiveData ( size_t  )

Definition at line 228 of file live_data.cpp.

228 {
229#if EFI_SENT_SUPPORT
230 return &engine->sent_state;
231#else
232 return nullptr;
233#endif
234}
sent_state_s sent_state
Definition engine.h:348

◆ getLiveData() [29/35]

template<>
const closed_loop_idle_s * getLiveData ( size_t  )

Definition at line 237 of file live_data.cpp.

237 {
238#if EFI_IDLE_CONTROL
239 return &engine->m_ltit;
240#else
241 return nullptr;
242#endif
243}
LongTermIdleTrim m_ltit
Definition engine.h:135

◆ getLiveData() [30/35]

template<>
const throttle_model_s * getLiveData ( size_t  )

Definition at line 246 of file live_data.cpp.

246 {
247#if EFI_IDLE_CONTROL
248 return &engine->module<ThrottleModel>().unmock();
249#else
250 return nullptr;
251#endif
252}
Here is the call graph for this function:

◆ getLiveData() [31/35]

template<>
const lambda_monitor_s * getLiveData ( size_t  )

Definition at line 255 of file live_data.cpp.

255 {
256#if EFI_SHAFT_POSITION_INPUT
257 return &engine->lambdaMonitor;
258#else
259 return nullptr;
260#endif
261}
LambdaMonitor lambdaMonitor
Definition engine.h:236

◆ getLiveData() [32/35]

template<>
const long_term_fuel_trim_state_s * getLiveData ( size_t  )

Definition at line 287 of file live_data.cpp.

287 {
288#if EFI_LTFT_CONTROL
289 engine->module<LongTermFuelTrim>()->onLiveDataRead();
290 return &engine->module<LongTermFuelTrim>().unmock();
291#else
292 return nullptr;
293#endif
294}
Here is the call graph for this function:

◆ getLiveData() [33/35]

template<>
const short_term_fuel_trim_state_s * getLiveData ( size_t  )

Definition at line 297 of file live_data.cpp.

297 {
298#if EFI_LTFT_CONTROL
299 return &engine->module<ShortTermFuelTrim>().unmock();
300#else
301 return nullptr;
302#endif
303}
Here is the call graph for this function:

◆ getLiveData() [34/35]

template<>
const live_data_example_s * getLiveData ( size_t  )

Definition at line 306 of file live_data.cpp.

306 {
307#if EFI_LTFT_CONTROL
308 return &engine->module<ExampleModule>().unmock();
309#else
310 return nullptr;
311#endif
312}
Here is the call graph for this function:

◆ getLiveData() [35/35]

template<>
const vvl_controller_state_s * getLiveData ( size_t  )

Definition at line 315 of file live_data.cpp.

315 {
316#if MODULE_VVL_CONTROLLER
317 return &engine->module<VvlController>().unmock();
318#else
319 return nullptr;
320#endif
321}
Here is the call graph for this function:

◆ getLiveDataFragments()

FragmentList getLiveDataFragments ( )

Definition at line 282 of file live_data.cpp.

282 {
283 return { fragments, efi::size(fragments) };
284}
static const FragmentEntry fragments[]

Referenced by TunerStudio::cmdOutputChannels(), and TunerStudio::handleScatteredReadCommand().

Here is the caller graph for this function:

Variable Documentation

◆ fragments

const FragmentEntry fragments[]
static
Initial value:

Definition at line 277 of file live_data.cpp.

277 {
278// This header is generated - do not edit by hand!
279#include "live_data_fragments.h"
280};

Referenced by getLiveDataFragments().

Go to the source code of this file.