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

Detailed Description

Date
Jan 20, 2014
Author
Andrey Belomutskiy, (c) 2012-2020

This file is part of rusEfi - see http://rusefi.com

rusEfi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file trigger_structure.cpp.

Functions

void wrapAngle (angle_t &angle, const char *msg, ObdCode code)
 
PUBLIC_API_WEAK void customTrigger (operation_mode_e triggerOperationMode, TriggerWaveform *s, trigger_type_e type)
 

Variables

bool printTriggerDebug
 

Function Documentation

◆ customTrigger()

PUBLIC_API_WEAK void customTrigger ( operation_mode_e  triggerOperationMode,
TriggerWaveform s,
trigger_type_e  type 
)

Definition at line 439 of file trigger_structure.cpp.

439 {
441 initializeSkippedToothTrigger(s, 1, 0, triggerOperationMode, SyncEdge::Rise);
442 return;
443 }
445 warning(ObdCode::CUSTOM_ERR_NO_SHAPE, "initializeTriggerWaveform() not implemented: %d", type);
446}
void setShapeDefinitionError(bool value)
bool warning(ObdCode code, const char *fmt,...)
@ CUSTOM_ERR_NO_SHAPE
void initializeSkippedToothTrigger(TriggerWaveform *s, int totalTeethCount, int skippedCount, operation_mode_e operationMode, SyncEdge syncEdge)

Referenced by TriggerWaveform::initializeTriggerWaveform().

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

◆ wrapAngle()

void wrapAngle ( angle_t angle,
const char msg,
ObdCode  code 
)

Definition at line 43 of file trigger_structure.cpp.

43 {
44 if (std::isnan(angle)) {
46 angle = 0;
47 }
48
49 assertAngleRange(angle, msg, code);
50 float engineCycle = getEngineState()->engineCycle;
51
52 while (angle < 0) {
53 angle += engineCycle;
54 }
55
56 while (angle >= engineCycle) {
57 angle -= engineCycle;
58 }
59}
uint8_t code
Definition bluetooth.cpp:40
angle_t engineCycle
EngineState * getEngineState()
Definition engine.cpp:577
void firmwareError(ObdCode code, const char *fmt,...)
@ CUSTOM_ERR_ANGLE

Referenced by auxPlainPinTurnOn(), InstantRpmCalculator::calculateInstantRpm(), InjectionEvent::computeInjectionAngle(), TriggerCentral::findNextTriggerToothAngle(), getInjectionOffset(), IgnitionState::getWrappedAdvance(), TriggerCentral::handleShaftSignal(), MapAveragingModule::onFastCallback(), EngineState::periodicFastCallback(), prepareCylinderIgnitionSchedule(), TriggerFormDetails::prepareEventAngles(), reportWave(), HpfpController::scheduleNextCycle(), tdcMarkCallback(), and wrapAngleMethod().

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

Variable Documentation

◆ printTriggerDebug

bool printTriggerDebug
extern

Go to the source code of this file.