rusEFI
The most advanced open source ECU
|
We cannot use stdlib because we do not have malloc - so, we have to implement these functions
Definition in file efilib.cpp.
Functions | |
const char * | boolToString (bool value) |
float | efiRound (float value, float precision) |
char * | efiTrim (char *param) |
static char * | ltoa_internal (char *p, uint32_t num, unsigned radix) |
static char * | itoa_signed (char *p, int num, unsigned radix) |
char * | itoa10 (char *p, int num) |
int | efiPow10 (int param) |
int | djb2lowerCase (const char *str) |
void | printHistogram (Logging *logging, histogram_s *histogram) |
This function knows how to print a histogram_s summary. | |
float | limitRateOfChange (float newValue, float oldValue, float incrLimitPerSec, float decrLimitPerSec, float secsPassed) |
bool | isPhaseInRange (float test, float current, float next) |
static int | getBitRangeCommon (const uint8_t data[], int bitIndex, int bitWidth, int secondByteOffset) |
int | getBitRangeLsb (const uint8_t data[], int bitIndex, int bitWidth) |
int | getBitRangeMsb (const uint8_t data[], int bitIndex, int bitWidth) |
void | setBitRangeMsb (uint8_t data[], const int totalBitIndex, const int bitWidth, const int value) |
int | motorolaMagicFromDbc (int b, int length) |
int | getBitRangeMoto (const uint8_t data[], int bitIndex, int bitWidth) |
void | setBitRangeMoto (uint8_t data[], const int totalBitIndex, const int bitWidth, const int value) |
Definition at line 19 of file efilib.cpp.
Referenced by canInfo(), TriggerDecoderBase::decodeTriggerEvent(), getValue(), TriggerDecoderBase::printGaps(), printSpiState(), printStatus(), sayHello(), sdStatistics(), MapAverager::showInfo(), CanSensorBase::showInfo(), FuelLevelSensor::showInfo(), FunctionalSensor::showInfo(), StoredValueSensor::showInfo(), LinearFunc::showInfo(), ThermistorFunc::showInfo(), and triggerInfo().
int djb2lowerCase | ( | const char * | str | ) |
Definition at line 135 of file efilib.cpp.
Referenced by getConfigValueByName(), getOutputValueByName(), and setConfigValueByName().
int efiPow10 | ( | int | param | ) |
Definition at line 111 of file efilib.cpp.
Referenced by DisplayErrorCode(), and efiPow10().
precision | for example '0.1' for one digit fractional part |
Definition at line 34 of file efilib.cpp.
Referenced by StepperMotorBase::doIteration(), getDacValue(), obdSendValue(), setHysteresis(), StepperMotorBase::setInitialPosition(), setLinearCurve(), setRpmBin(), TriggerWaveform::setTriggerSynchronizationGap3(), and DynoView::update().
Definition at line 40 of file efilib.cpp.
Referenced by TunerStudio::handleExecuteCommand().
|
static |
Definition at line 195 of file efilib.cpp.
Referenced by getBitRangeLsb(), and getBitRangeMsb().
int getBitRangeLsb | ( | const uint8_t | data[], |
int | bitIndex, | ||
int | bitWidth | ||
) |
Definition at line 207 of file efilib.cpp.
Referenced by processHyundai().
int getBitRangeMoto | ( | const uint8_t | data[], |
int | bitIndex, | ||
int | bitWidth | ||
) |
Definition at line 243 of file efilib.cpp.
int getBitRangeMsb | ( | const uint8_t | data[], |
int | bitIndex, | ||
int | bitWidth | ||
) |
for instance DBC 8|16@0
Definition at line 212 of file efilib.cpp.
Referenced by getBitRangeMoto().
Definition at line 176 of file efilib.cpp.
Referenced by MapAveragingModule::onEnginePhase(), onTriggerEventSparkLogic(), InjectionEvent::onTriggerTooth(), and AngleBasedEvent::shouldSchedule().
Integer to string
Definition at line 107 of file efilib.cpp.
Referenced by addEngineSnifferCrankEvent(), addEngineSnifferTdcEvent(), WaveChart::addEvent3(), incLogFileName(), prepareLogFileName(), and putTwoSymbolDecimal().
Definition at line 90 of file efilib.cpp.
Referenced by itoa10().
float limitRateOfChange | ( | float | newValue, |
float | oldValue, | ||
float | incrLimitPerSec, | ||
float | decrLimitPerSec, | ||
float | secsPassed | ||
) |
Definition at line 170 of file efilib.cpp.
Referenced by EngineState::updateTChargeK().
Definition at line 52 of file efilib.cpp.
Referenced by itoa_signed().
int motorolaMagicFromDbc | ( | int | b, |
int | length | ||
) |
Definition at line 232 of file efilib.cpp.
Referenced by getBitRangeMoto(), and setBitRangeMoto().
void printHistogram | ( | Logging * | logging, |
histogram_s * | histogram | ||
) |
This function knows how to print a histogram_s summary.
Definition at line 150 of file efilib.cpp.
void setBitRangeMoto | ( | uint8_t | data[], |
const int | totalBitIndex, | ||
const int | bitWidth, | ||
const int | value | ||
) |
Definition at line 248 of file efilib.cpp.
void setBitRangeMsb | ( | uint8_t | data[], |
const int | totalBitIndex, | ||
const int | bitWidth, | ||
const int | value | ||
) |
Definition at line 216 of file efilib.cpp.
Referenced by setBitRangeMoto(), and setBitRangeMsb().