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

Functions

void setHellen121nissanVQ ()
 
void setHellen121nissanQR ()
 
void setHellen121nissanAltimaN16 ()
 
void setProteusNissanVQ ()
 

Function Documentation

◆ setHellen121nissanAltimaN16()

void setHellen121nissanAltimaN16 ( )

Definition at line 80 of file nissan_vq.cpp.

80 {
81 // https://en.wikipedia.org/wiki/Nissan_QG_engine
82 // https://en.wikipedia.org/wiki/N-VCT
84 engineConfiguration->displacement = 1.8;
85 strcpy(engineConfiguration->engineCode, "N16");
86
87}
static constexpr engine_configuration_s * engineConfiguration
void setHellen121nissanQR()
Definition nissan_vq.cpp:16
Here is the call graph for this function:

◆ setHellen121nissanQR()

void setHellen121nissanQR ( )

Definition at line 16 of file nissan_vq.cpp.

16 {
18
19 setInline4();
20 engineConfiguration->displacement = 2;
21 strcpy(engineConfiguration->engineCode, "QR");
22
23 engineConfiguration->camInputs[1 * CAMS_PER_BANK] = Gpio::Unassigned;
24
25 engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ;
26
27 // we have this here and not in board_configuration.cpp so that unit test would get this value
28 engineConfiguration->invertCamVVTSignal = true;
29
30 engineConfiguration->vvtOffsets[0] = 157;
31
32}
@ Unassigned
void setInline4()

Referenced by applyEngineType(), and setHellen121nissanAltimaN16().

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

◆ setHellen121nissanVQ()

void setHellen121nissanVQ ( )

Definition at line 59 of file nissan_vq.cpp.

59 {
60 #include "nissan_vq.lua"
61
63
64 // we have this here and not in board_configuration.cpp so that unit test would get this value
65 engineConfiguration->invertCamVVTSignal = true;
66
67#if HW_HELLEN && EFI_PROD_CODE
68 engineConfiguration->vvtPins[0 * CAMS_PER_BANK] = H176_LS_7;
69 engineConfiguration->vvtPins[1 * CAMS_PER_BANK] = H176_LS_8;
70#endif
71}
static void setNissanVqEngineConfig()
Definition nissan_vq.cpp:34

Referenced by applyEngineType().

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

◆ setProteusNissanVQ()

void setProteusNissanVQ ( )

Definition at line 73 of file nissan_vq.cpp.

73 {
75
76 // open question if that's a board setting or engine setting
77 engineConfiguration->invertCamVVTSignal = true;
78}

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.