static void sparkbench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr, const char *countStr) { int index = atoi(indexStr); brain_pin_e b = boardConfiguration->ignitionPins[index - 1]; io_pin_e p = (io_pin_e) ((int) SPARKOUT_1_OUTPUT - 1 + index); pinbench(delayStr, onTimeStr, offTimeStr, countStr, p, b); }
static void fuelbench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr, const char *countStr) { int index = atoi(indexStr); brain_pin_e b = boardConfiguration->injectionPins[index - 1]; io_pin_e p = (io_pin_e) ((int) INJECTOR_1_OUTPUT - 1 + index); pinbench(delayStr, onTimeStr, offTimeStr, countStr, p, b); }
static void doRunSpark(int humanIndex, const char *delayStr, const char * onTimeStr, const char *offTimeStr, const char *countStr) { if (humanIndex < 1 || humanIndex > engineConfiguration->specs.cylindersCount) { scheduleMsg(logger, "Invalid index: %d", humanIndex); return; } brain_pin_e b = boardConfiguration->ignitionPins[humanIndex - 1]; pinbench(delayStr, onTimeStr, offTimeStr, countStr, &enginePins.coils[humanIndex - 1], b); }
void fuelPumpBenchExt(const char *durationMs) { pinbench("0", durationMs, "100", "1", &enginePins.fuelPumpRelay, boardConfiguration->fuelPumpPin); }
void milBench(void) { pinbench("0", "3000", "100", "1", &checkEnginePin, boardConfiguration->malfunctionIndicatorPin); }
void fanBench(void) { pinbench("0", "3000", "100", "1", &enginePins.fanRelay, boardConfiguration->fanPin); }