rusEFI
The most advanced open source ECU
|
Controllers package entry point code.
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 engine_controller.cpp.
Functions | |
void | initDataStructures () |
static void | doPeriodicSlowCallback () |
static void | resetAccel () |
void | initPeriodicEvents () |
char * | getPinNameByAdcChannel (const char *msg, adc_channel_e hwChannel, char *buffer, size_t bufferSize) |
static void | printSensorInfo () |
static void | getShort (int offset) |
static void | getByte (int offset) |
static void | setBit (const char *offsetStr, const char *bitStr, const char *valueStr) |
static void | setShort (const int offset, const int value) |
static void | setByte (const int offset, const int value) |
static void | getBit (int offset, int bit) |
static void | getInt (int offset) |
static void | setInt (const int offset, const int value) |
static void | getFloat (int offset) |
static void | setFloat (const char *offsetStr, const char *valueStr) |
static void | initConfigActions () |
void | commonInitEngineController () |
PUBLIC_API_WEAK bool | validateBoardConfig () |
bool | validateConfigOnStartUpOrBurn () |
void | commonEarlyInit () |
void | initRealHardwareEngineController () |
int | getRusEfiVersion () |
Variables | |
Engine ___engine | CCM_OPTIONAL |
Engine * | engine |
static PeriodicFastController | fastController |
static PeriodicSlowController | slowController |
static EngineStateBlinkingTask | engineStateBlinkingTask |
static volatile char | UNUSED_RAM_SIZE [RAM_UNUSED_SIZE] |
void commonEarlyInit | ( | ) |
Initialize hardware drivers
Definition at line 699 of file engine_controller.cpp.
Referenced by initEfiWithConfig().
void commonInitEngineController | ( | ) |
This has to go after 'enginePins.startPins()' in order to properly detect un-assigned output pins
Definition at line 405 of file engine_controller.cpp.
Referenced by initRealHardwareEngineController().
|
static |
rusEfi usually runs on hardware which halts execution while writing to internal flash, so we postpone writes to until engine is stopped. Writes in case of self-stimulation are fine.
todo: allow writing if 2nd bank of flash is used
Definition at line 180 of file engine_controller.cpp.
|
static |
this response is part of rusEfi console API
Definition at line 327 of file engine_controller.cpp.
Referenced by initConfigActions().
|
static |
this response is part of rusEfi console API
Definition at line 270 of file engine_controller.cpp.
Referenced by initConfigActions(), and setByte().
|
static |
this response is part of rusEfi console API
Definition at line 358 of file engine_controller.cpp.
Referenced by initConfigActions(), and setFloat().
|
static |
this response is part of rusEfi console API
Definition at line 338 of file engine_controller.cpp.
Referenced by initConfigActions(), and setInt().
char * getPinNameByAdcChannel | ( | const char * | msg, |
adc_channel_e | hwChannel, | ||
char * | buffer, | ||
size_t | bufferSize | ||
) |
Definition at line 231 of file engine_controller.cpp.
Referenced by AdcSubscription::PrintInfo(), and printMAPInfo().
int getRusEfiVersion | ( | ) |
See also SIGNATURE_HASH
Definition at line 774 of file engine_controller.cpp.
Referenced by errorHandlerInit(), firmwareError(), handleGetVersion(), printVersionForConsole(), readFromFlash(), sayHello(), and updateTunerStudioState().
|
static |
this response is part of rusEfi console API
Definition at line 259 of file engine_controller.cpp.
Referenced by initConfigActions(), and setShort().
|
static |
Definition at line 388 of file engine_controller.cpp.
Referenced by commonInitEngineController().
void initDataStructures | ( | ) |
Definition at line 103 of file engine_controller.cpp.
Referenced by runRusEfi().
void initPeriodicEvents | ( | ) |
Definition at line 226 of file engine_controller.cpp.
Referenced by runRusEfi().
void initRealHardwareEngineController | ( | ) |
Definition at line 735 of file engine_controller.cpp.
Referenced by initEfiWithConfig().
|
static |
Definition at line 246 of file engine_controller.cpp.
Referenced by commonInitEngineController().
|
static |
Definition at line 169 of file engine_controller.cpp.
Referenced by commonInitEngineController(), and doPeriodicSlowCallback().
this response is part of rusEfi console API
Definition at line 281 of file engine_controller.cpp.
Referenced by initConfigActions().
|
static |
Definition at line 318 of file engine_controller.cpp.
Referenced by initConfigActions().
Definition at line 369 of file engine_controller.cpp.
Referenced by initConfigActions().
|
static |
Definition at line 349 of file engine_controller.cpp.
Referenced by initConfigActions().
|
static |
Definition at line 309 of file engine_controller.cpp.
Referenced by initConfigActions().
PUBLIC_API_WEAK bool validateBoardConfig | ( | ) |
Definition at line 517 of file engine_controller.cpp.
Referenced by validateConfigOnStartUpOrBurn().
bool validateConfigOnStartUpOrBurn | ( | ) |
Definition at line 522 of file engine_controller.cpp.
Referenced by handleBurnCommand(), and initEfiWithConfig().
volatile char UNUSED_CCM_SIZE [CCM_UNUSED_SIZE] CCM_OPTIONAL |
Would love to pass reference to configuration object into constructor but C++ does allow attributes after parenthesized initializer
Definition at line 94 of file engine_controller.cpp.
Engine* engine |
Definition at line 98 of file engine_controller.cpp.
Referenced by commonInitEngineController(), doPeriodicSlowCallback(), initDataStructures(), and resetAccel().
|
static |
Definition at line 167 of file engine_controller.cpp.
Referenced by initRealHardwareEngineController().
|
static |
Definition at line 142 of file engine_controller.cpp.
Referenced by initPeriodicEvents().
|
static |
Definition at line 143 of file engine_controller.cpp.
Referenced by initPeriodicEvents().
|
static |
Definition at line 768 of file engine_controller.cpp.
Referenced by getRusEfiVersion().