rusEFI
The most advanced open source ECU
|
#include <efi_gpio.h>
Public Member Functions | |
EnginePins () | |
void | startPins () |
void | reset () |
bool | stopPins () |
void | unregisterPins () |
OutputPin * | getOutputPinForBenchMode (bench_mode_e idx) |
void | resetForUnitTest () |
Static Public Member Functions | |
static void | debug () |
Private Member Functions | |
void | startInjectionPins () |
void | startIgnitionPins () |
void | startAuxValves () |
void | stopInjectionPins () |
void | stopIgnitionPins () |
void | stopAuxValves () |
Definition at line 66 of file efi_gpio.h.
EnginePins::EnginePins | ( | ) |
Definition at line 142 of file efi_gpio.cpp.
|
static |
Definition at line 250 of file efi_gpio.cpp.
Referenced by initPrimaryPins().
OutputPin * EnginePins::getOutputPinForBenchMode | ( | bench_mode_e | idx | ) |
Definition at line 356 of file efi_gpio.cpp.
Referenced by resetPinStats(), and sendPinStatePackets().
void EnginePins::reset | ( | ) |
Definition at line 275 of file efi_gpio.cpp.
Referenced by resetConfigurationExt().
void EnginePins::resetForUnitTest | ( | ) |
Definition at line 406 of file efi_gpio.cpp.
|
private |
Definition at line 308 of file efi_gpio.cpp.
Referenced by startPins().
|
private |
Definition at line 321 of file efi_gpio.cpp.
Referenced by setPinConfigurationOverrides(), and startPins().
|
private |
Definition at line 337 of file efi_gpio.cpp.
Referenced by setPinConfigurationOverrides(), and startPins().
void EnginePins::startPins | ( | ) |
Definition at line 258 of file efi_gpio.cpp.
Referenced by startHardware().
|
private |
Definition at line 298 of file efi_gpio.cpp.
Referenced by unregisterPins().
|
private |
Definition at line 283 of file efi_gpio.cpp.
Referenced by unregisterPins().
|
private |
Definition at line 290 of file efi_gpio.cpp.
Referenced by unregisterPins().
bool EnginePins::stopPins | ( | ) |
Definition at line 214 of file efi_gpio.cpp.
Referenced by Engine::efiWatchdog(), and Engine::onEngineHasStopped().
void EnginePins::unregisterPins | ( | ) |
Definition at line 228 of file efi_gpio.cpp.
Referenced by applyNewHardwareSettings().
OutputPin EnginePins::accelerometerCs |
Definition at line 125 of file efi_gpio.h.
Referenced by unregisterPins().
RegisteredOutputPin EnginePins::acRelay |
Definition at line 90 of file efi_gpio.h.
Referenced by acRelayBench(), configureRusefiLuaHooks(), getOutputPinForBenchMode(), and AcController::onSlowCallback().
RegisteredOutputPin EnginePins::alternatorPin |
Definition at line 114 of file efi_gpio.h.
Referenced by initAlternatorCtrl().
NamedOutputPin EnginePins::auxValve[AUX_DIGITAL_VALVE_COUNT] |
Definition at line 131 of file efi_gpio.h.
Referenced by auxPlainPinTurnOn(), EnginePins(), startAuxValves(), stopAuxValves(), and stopPins().
RegisteredOutputPin EnginePins::boostPin |
Definition at line 111 of file efi_gpio.h.
Referenced by startBoostPin().
RegisteredOutputPin EnginePins::checkEnginePin |
this one is usually on the gauge cluster, not on the ECU
Definition at line 118 of file efi_gpio.h.
Referenced by blink_digits(), getOutputPinForBenchMode(), milBench(), populateFrame(), and turnAllPinsOff().
IgnitionOutputPin EnginePins::coils[MAX_CYLINDER_COUNT] |
Definition at line 129 of file efi_gpio.h.
Referenced by doRunSparkBench(), EnginePins(), SensorChecker::onSlowCallback(), prepareCylinderIgnitionSchedule(), printEngineSnifferPinMappings(), reset(), setPinConfigurationOverrides(), startIgnitionPins(), stopIgnitionPins(), stopPins(), and turnAllPinsOff().
OutputPin EnginePins::communicationLedPin |
Definition at line 106 of file efi_gpio.h.
Referenced by firmwareErrorV(), and initStatusLeds().
OutputPin EnginePins::debugTriggerSync |
Definition at line 110 of file efi_gpio.h.
Referenced by TriggerDecoderBase::decodeTriggerEvent(), and initMiscOutputPins().
OutputPin EnginePins::errorLedPin |
brain board RED LED by default
Definition at line 105 of file efi_gpio.h.
Referenced by initErrorLed().
RegisteredOutputPin EnginePins::fanRelay |
Definition at line 86 of file efi_gpio.h.
Referenced by canDashboardHaltech(), configureRusefiLuaHooks(), fanBenchExt(), IdleController::getIdlePosition(), getOutputPinForBenchMode(), FanControl1::getPin(), IdleController::getRunningOpenLoop(), and populateFrame().
RegisteredOutputPin EnginePins::fanRelay2 |
Definition at line 87 of file efi_gpio.h.
Referenced by canDashboardHaltech(), configureRusefiLuaHooks(), fan2Bench(), IdleController::getIdlePosition(), FanControl2::getPin(), IdleController::getRunningOpenLoop(), and populateFrame().
RegisteredOutputPin EnginePins::fuelPumpRelay |
Definition at line 91 of file efi_gpio.h.
Referenced by fuelPumpBenchExt(), getOutputPinForBenchMode(), FuelPumpController::onSlowCallback(), populateFrame(), and turnAllPinsOff().
RegisteredNamedOutputPin EnginePins::harleyAcr |
Definition at line 95 of file efi_gpio.h.
Referenced by EnginePins(), getOutputPinForBenchMode(), hdAcrBench(), and HarleyAcr::onSlowCallback().
RegisteredOutputPin EnginePins::harleyAcr2 |
Definition at line 96 of file efi_gpio.h.
Referenced by getOutputPinForBenchMode(), hdAcrBench(), and HarleyAcr::onSlowCallback().
RegisteredNamedOutputPin EnginePins::hpfpValve |
High Pressure Fuel Pump valve control
Definition at line 80 of file efi_gpio.h.
Referenced by EnginePins(), getOutputPinForBenchMode(), hpfpValveBench(), isGdiEngine(), HpfpController::onFastCallback(), HpfpController::pinTurnOff(), HpfpController::pinTurnOn(), and HpfpController::scheduleNextCycle().
RegisteredOutputPin EnginePins::idleSolenoidPin |
Definition at line 112 of file efi_gpio.h.
Referenced by applyIACposition(), and getOutputPinForBenchMode().
InjectorOutputPin EnginePins::injectors[MAX_CYLINDER_COUNT] |
Definition at line 127 of file efi_gpio.h.
Referenced by doRunFuelInjBench(), endSimultaneousInjectionOnlyTogglePins(), EnginePins(), SensorChecker::onSlowCallback(), printEngineSnifferPinMappings(), reset(), FuelSchedule::resetOverlapping(), setPinConfigurationOverrides(), startInjectionPins(), startSimultaneousInjection(), stopInjectionPins(), stopPins(), turnAllPinsOff(), and InjectionEvent::update().
InjectorOutputPin EnginePins::injectorsStage2[MAX_CYLINDER_COUNT] |
Definition at line 128 of file efi_gpio.h.
Referenced by EnginePins(), printEngineSnifferPinMappings(), startInjectionPins(), stopInjectionPins(), stopPins(), and InjectionEvent::update().
OutputPin EnginePins::luaOutputPins[LUA_PWM_COUNT] |
Definition at line 100 of file efi_gpio.h.
Referenced by doRunBenchTestLuaOutput(), luaDeInitPins(), and startPwm().
RegisteredOutputPin EnginePins::mainRelay |
Definition at line 76 of file efi_gpio.h.
Referenced by getOutputPinForBenchMode(), Engine::isMainRelayEnabled(), mainRelayBench(), MainRelayController::onSlowCallback(), populateFrame(), and turnAllPinsOff().
RegisteredOutputPin EnginePins::nitrousRelay |
Definition at line 92 of file efi_gpio.h.
Referenced by NitrousController::onSlowCallback().
OutputPin EnginePins::o2heater |
Definition at line 99 of file efi_gpio.h.
Referenced by initMiscOutputPins(), Engine::periodicSlowCallback(), populateFrame(), and updateFlags().
OutputPin EnginePins::runningLedPin |
Definition at line 108 of file efi_gpio.h.
Referenced by initWarningRunningPins().
OutputPin EnginePins::sdCsPin |
Definition at line 124 of file efi_gpio.h.
Referenced by initMiscOutputPins(), and unregisterPins().
RegisteredOutputPin EnginePins::secondIdleSolenoidPin |
Definition at line 113 of file efi_gpio.h.
Referenced by applyIACposition().
RegisteredOutputPin EnginePins::speedoOut |
Definition at line 122 of file efi_gpio.h.
Referenced by initSpeedometer().
RegisteredOutputPin EnginePins::starterControl |
Definition at line 82 of file efi_gpio.h.
Referenced by disengageStarterIfNeeded(), doStartCranking(), getOutputPinForBenchMode(), slowStartStopButtonCallback(), starterRelayBench(), and updateTunerStudioState().
RegisteredOutputPin EnginePins::starterRelayDisable |
Definition at line 84 of file efi_gpio.h.
Referenced by Engine::periodicSlowCallback(), and updateTunerStudioState().
RegisteredOutputPin EnginePins::tachOut |
Definition at line 120 of file efi_gpio.h.
Referenced by TachometerModule::init().
OutputPin EnginePins::tcu32Solenoid |
Definition at line 136 of file efi_gpio.h.
Referenced by Gm4l6xTransmissionController::init().
OutputPin EnginePins::tcuPcSolenoid |
Definition at line 135 of file efi_gpio.h.
Referenced by Generic4TransmissionController::init().
OutputPin EnginePins::tcuSolenoids[TCU_SOLENOID_COUNT] |
Definition at line 132 of file efi_gpio.h.
Referenced by doRunSolenoidBench(), SimpleTransmissionController::init(), and SimpleTransmissionController::update().
OutputPin EnginePins::tcuTccOnoffSolenoid |
Definition at line 133 of file efi_gpio.h.
Referenced by Generic4TransmissionController::init(), and Generic4TransmissionController::setTccState().
OutputPin EnginePins::tcuTccPwmSolenoid |
Definition at line 134 of file efi_gpio.h.
Referenced by Gm4l6xTransmissionController::init().
IgnitionOutputPin EnginePins::trailingCoils[MAX_CYLINDER_COUNT] |
Definition at line 130 of file efi_gpio.h.
Referenced by EnginePins(), fireSparkAndPrepareNextSchedule(), printEngineSnifferPinMappings(), reset(), startIgnitionPins(), stopIgnitionPins(), stopPins(), turnAllPinsOff(), and turnSparkPinHighStartCharging().
RegisteredOutputPin EnginePins::triggerDecoderErrorPin |
Definition at line 121 of file efi_gpio.h.
Referenced by Engine::OnTriggerSynchronization().
RegisteredOutputPin EnginePins::vvlRelay |
Definition at line 93 of file efi_gpio.h.
Referenced by VvlController::onSlowCallback().
OutputPin EnginePins::warningLedPin |
Definition at line 107 of file efi_gpio.h.
Referenced by errorHandlerWriteReportFile(), and initWarningRunningPins().