rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
vw_b6.h File Reference

Functions

void setMreVwPassatB6 ()
 
void setProteusVwPassatB6 ()
 

Function Documentation

◆ setMreVwPassatB6()

void setMreVwPassatB6 ( )

set engine_type 62 VW_B6 has to be microRusEFI 0.5.2

Definition at line 188 of file vw_b6.cpp.

188 {
189#if HW_MICRO_RUSEFI
191
192// engineConfiguration->afr.hwChannel = MRE_IN_ANALOG_VOLT_10;
193
194 engineConfiguration->tps1_2AdcChannel = MRE_IN_ANALOG_VOLT_9;
195
196
197
198 // EFI_ADC_7: "31 - AN volt 3" - PA7
199 // 36 - AN volt 8
200 setPPSInputs(MRE_IN_ANALOG_VOLT_3, MRE_IN_ANALOG_VOLT_8);
201
202 // "26 - AN volt 2"
203 engineConfiguration->highPressureFuel.hwChannel = MRE_IN_ANALOG_VOLT_2;
204
205
206 // "19 - AN volt 4"
208
210
212 // RED
214 // YELLOW
216 // BROWN
220
221
222 // J8 orange
224 // J8 Grey
226 // J8 Dark BLUE
228 // J9 violet
230
231 // J10 Dark BLUE
233 // J11 green
235 // J18 grey
237 // J6 white
239
240
241 gppwm_channel *lowPressureFuelPumpControl = &engineConfiguration->gppwm[1];
242
243 // "42 - Injector 4", somehow GP4 did not work? not enough current? not happy with diode?
244 lowPressureFuelPumpControl->pin = MRE_INJ_4;
245
246
247 gppwm_channel *coolantControl = &engineConfiguration->gppwm[0];
248
249 coolantControl->pin = MRE_LS_2;
250 // "7 - Lowside 1"
251 //engineConfiguration->hpfpValvePin = MRE_LS_1;
253
254
255#endif /* HW_MICRO_RUSEFI */
256}
@ Unassigned
void setPPSInputs(adc_channel_e pps1, adc_channel_e pps2)
static constexpr engine_configuration_s * engineConfiguration
static void commonPassatB6()
Definition vw_b6.cpp:18

Referenced by applyEngineType().

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

◆ setProteusVwPassatB6()

void setProteusVwPassatB6 ( )

set engine_type 39

Definition at line 134 of file vw_b6.cpp.

134 {
135#if HW_PROTEUS
136 static_assert(sizeof(hardCodedFreqBins) == sizeof(hardCodedGperSValues));
137#if SCRIPT_CURVE_16 == 16
138 {
139 size_t mi = 0;
140 for (; mi < efi::size(hardCodedFreqBins); mi++) {
143 }
144
145 for (; mi < SCRIPT_CURVE_16; mi++) {
146 config->scriptCurve1Bins[mi] = 3650 + mi;
147 config->scriptCurve1[mi] = 4000;
148 }
149 }
150 strcpy(engineConfiguration->scriptCurveName[0], "MAFcurve");
151#endif
152
154 engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
155 engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2;
156
157 engineConfiguration->auxSpeedSensorInputPin[0] = PROTEUS_DIGITAL_5;
158
159 engineConfiguration->lowPressureFuel.hwChannel = PROTEUS_IN_ANALOG_VOLT_5;
160 engineConfiguration->highPressureFuel.hwChannel = PROTEUS_IN_ANALOG_VOLT_4;
161
162 gppwm_channel *coolantControl = &engineConfiguration->gppwm[0];
163 coolantControl->pin = Gpio::PROTEUS_LS_5;
164
165 engineConfiguration->mainRelayPin = Gpio::PROTEUS_LS_6;
166
167 gppwm_channel *lowPressureFuelPumpControl = &engineConfiguration->gppwm[1];
168 lowPressureFuelPumpControl->pin = Gpio::PROTEUS_LS_7;
169
170 //engineConfiguration->boostControlPin = Gpio::PROTEUS_LS_8;
171 engineConfiguration->vvtPins[0] = Gpio::PROTEUS_LS_9;
172 engineConfiguration->hpfpValvePin = Gpio::PROTEUS_LS_15;
173
175
176#if EFI_PROD_CODE
177 #include "vw_b6.lua"
178#endif
179
180#endif // HW_PROTEUS
181}
static constexpr persistent_config_s * config
void setProteusEtbIO()
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
brain_input_pin_e auxSpeedSensorInputPin[AUX_SPEED_SENSOR_COUNT]
static const float hardCodedFreqBins[]
Definition vw_b6.cpp:112
static const float hardCodedGperSValues[]
Definition vw_b6.cpp:121

Referenced by applyEngineType().

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

Go to the source code of this file.