rusEFI
The most advanced open source ECU
|
Functions | |
chibios_rt::BinarySemaphore | knockSem (true) |
void | onKnockSamplingComplete () |
void | onStartKnockSampling (uint8_t cylinderNumber, float samplingSeconds, uint8_t channelIdx) |
void | initSoftwareKnock () |
static uint8_t | toDb (const float &voltage) |
static void | processLastKnockEvent () |
Variables | |
static size_t | spectrogramStartIndex = 0 |
static SpectrogramData | spectrogramData0 |
static SpectrogramData * | spectrogramData = &spectrogramData0 |
static NO_CACHE adcsample_t | sampleBuffer [1800] |
static int8_t | currentCylinderNumber = 0 |
static int8_t | channelNumber = 0 |
static efitick_t | lastKnockSampleTime = 0 |
static Biquad | knockFilter |
static volatile bool | knockIsSampling = false |
static volatile bool | knockNeedsProcess = false |
static volatile size_t | sampleCount = 0 |
static KnockThread | kt |
void initSoftwareKnock | ( | ) |
Definition at line 91 of file software_knock.cpp.
Referenced by initHardware().
chibios_rt::BinarySemaphore knockSem | ( | true | ) |
void onKnockSamplingComplete | ( | ) |
Definition at line 41 of file software_knock.cpp.
Referenced by knockCompletionCallback(), and knockCompletionCallback().
void onStartKnockSampling | ( | uint8_t | cylinderNumber, |
float | samplingSeconds, | ||
uint8_t | channelIdx | ||
) |
Definition at line 50 of file software_knock.cpp.
Referenced by startKnockSampling().
|
static |
Definition at line 160 of file software_knock.cpp.
|
static |
Definition at line 153 of file software_knock.cpp.
Referenced by processLastKnockEvent().
|
static |
Definition at line 31 of file software_knock.cpp.
Referenced by onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 30 of file software_knock.cpp.
Referenced by onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 33 of file software_knock.cpp.
Referenced by fft::fft_adc_sample_filtered(), initSoftwareKnock(), and processLastKnockEvent().
|
static |
Definition at line 35 of file software_knock.cpp.
|
static |
Definition at line 36 of file software_knock.cpp.
Referenced by onKnockSamplingComplete(), onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 89 of file software_knock.cpp.
Referenced by initSoftwareKnock().
|
static |
Definition at line 32 of file software_knock.cpp.
Referenced by onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 29 of file software_knock.cpp.
Referenced by onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 37 of file software_knock.cpp.
Referenced by onStartKnockSampling(), and processLastKnockEvent().
|
static |
Definition at line 20 of file software_knock.cpp.
Referenced by initSoftwareKnock(), and processLastKnockEvent().
|
static |
Definition at line 19 of file software_knock.cpp.
|
static |
Definition at line 18 of file software_knock.cpp.
Referenced by initSoftwareKnock(), and processLastKnockEvent().