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

Detailed Description

We can blink out OBD-II error codes using Malfunction Indicator Light (MIL)

Date
Dec 20, 2013
Author
Konstantin Nikonenko
Andrey Belomutskiy, (c) 2012-2020

Definition in file malfunction_indicator.h.

Functions

bool isMilEnabled ()
 
void initMalfunctionIndicator (void)
 

Function Documentation

◆ initMalfunctionIndicator()

void initMalfunctionIndicator ( void  )

Definition at line 120 of file malfunction_indicator.cpp.

120 {
121 if (!isMilEnabled()) {
122 return;
123 }
124 instance.setPeriod(10 /*ms*/);
125 instance.start();
126
127#if TEST_MIL_CODE
128 addConsoleAction("testmil", testMil);
129#endif /* TEST_MIL_CODE */
130}
void addConsoleAction(const char *token, Void callback)
Register console action without parameters.
static MILController instance
static void testMil()
bool isMilEnabled()

Referenced by commonInitEngineController().

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

◆ isMilEnabled()

bool isMilEnabled ( )

Definition at line 116 of file malfunction_indicator.cpp.

116 {
118}
static constexpr engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)

Referenced by initMalfunctionIndicator().

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

Go to the source code of this file.