rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Functions
knock_logic.h File Reference

Data Structures

class  KnockControllerBase
 
class  KnockController
 

Functions

int getCylinderKnockBank (uint8_t cylinderNumber)
 

Function Documentation

◆ getCylinderKnockBank()

int getCylinderKnockBank ( uint8_t  cylinderNumber)

Definition at line 11 of file knock_controller.cpp.

11 {
12 // C/C++ can't index in to bit fields, we have to provide lookup ourselves
13 switch (cylinderNumber) {
14 case 0:
16 case 1:
18 case 2:
20 case 3:
22 case 4:
24 case 5:
26 case 6:
28 case 7:
30 case 8:
32 case 9:
34 case 10:
36 case 11:
38 default:
39 return 0;
40 }
41}
static constexpr engine_configuration_s * engineConfiguration

Referenced by startKnockSampling().

Here is the caller graph for this function:

Go to the source code of this file.