rusEFI
The most advanced open source ECU
|
Typedefs | |
using | AdcToken = uint32_t |
using | AdcTockenInternal = union { AdcToken token |
Enumerations | |
enum class | AdcChannelMode : char { Off , Slow , Fast } |
Variables | |
static constexpr AdcToken | invalidAdcToken = (AdcToken)(-1) |
using AdcTockenInternal = union { AdcToken token |
Definition at line 105 of file adc_inputs.h.
using AdcToken = uint32_t |
Definition at line 103 of file adc_inputs.h.
|
strong |
Enumerator | |
---|---|
Off | |
Slow | |
Fast |
Definition at line 75 of file adc_inputs.h.
struct @29 __attribute__ | ( | (packed) | ) |
Definition at line 38 of file tooth_logger.h.
void addFastAdcChannel | ( | const char * | name, |
adc_channel_e | hwChannel | ||
) |
Definition at line 175 of file adc_inputs.cpp.
Referenced by addAdcChannelForTrigger(), configureInputs(), and setAdcChannelOverrides().
int analogGetDiagnostic | ( | ) |
Definition at line 41 of file adc_inputs.cpp.
Referenced by SensorChecker::onSlowCallback().
float boardAdjustVoltage | ( | float | voltage, |
adc_channel_e | hwChannel | ||
) |
Definition at line 15 of file adc_inputs.cpp.
Referenced by adcGetScaledVoltage().
AdcToken enableFastAdcChannel | ( | const char * | msg, |
adc_channel_e | channel | ||
) |
Definition at line 274 of file mpu_util.cpp.
Referenced by calcFastAdcIndexes().
AdcChannelMode getAdcMode | ( | adc_channel_e | hwChannel | ) |
Definition at line 69 of file adc_inputs.cpp.
Referenced by AdcSubscription::PrintInfo().
float getAnalogInputDividerCoefficient | ( | adc_channel_e | hwChannel | ) |
Definition at line 111 of file board_configuration.cpp.
Referenced by adcGetScaledVoltage().
adcsample_t getFastAdc | ( | AdcToken | token | ) |
Definition at line 283 of file mpu_util.cpp.
Referenced by onFastAdcComplete().
int getInternalAdcValue | ( | const char * | msg, |
adc_channel_e | index | ||
) |
Definition at line 77 of file adc_inputs.cpp.
const ADCConversionGroup * getKnockConversionGroup | ( | uint8_t | channelIdx | ) |
Definition at line 369 of file stm32_adc_v2.cpp.
Referenced by onStartKnockSampling().
float getMCUInternalTemperature | ( | void | ) |
Definition at line 73 of file adc_inputs.cpp.
Referenced by populateFrame(), and updateMiscSensors().
void initAdcInputs | ( | ) |
Definition at line 231 of file adc_inputs.cpp.
Referenced by initHardware().
|
inline |
|
inline |
Definition at line 34 of file adc_inputs.h.
Referenced by boardGetAnalogInputDiagnostic().
|
inline |
Definition at line 21 of file adc_inputs.h.
Referenced by addAdcChannelForTrigger(), addFastAdcChannel(), configTherm(), configureTempSensor(), deInitIfValid(), enableFastAdcChannel(), enableFastAdcChannel(), getAfr(), getInternalAdcValue(), getPinNameByAdcChannel(), hasAfrSensor(), initAuxSensors(), initFlexSensor(), initFluidPressure(), initFuelLevel(), initIfValid(), initLambda(), initMaf(), initMap(), initOldAnalogInputs(), initRangeSensors(), initTps(), initVbatt(), isAdcChannelOffChip(), isAdcChannelOnChip(), printAdcChannedReport(), removeChannel(), GenericGearController::update(), and updateRawSensors().
void onFastAdcComplete | ( | adcsample_t * | samples | ) |
This method is not in the adc* lower-level file because it is more business logic then hardware.
this callback is executed 10 000 times a second, it needs to be as fast as possible
Definition at line 269 of file hardware.cpp.
Referenced by adc_callback(), and fastAdcDoneCB().
void onKnockSamplingComplete | ( | ) |
Definition at line 41 of file software_knock.cpp.
Referenced by knockCompletionCallback(), and knockCompletionCallback().
void printFullAdcReport | ( | void | ) |
Definition at line 119 of file adc_inputs.cpp.
Referenced by initSettings(), and printFullAdcReportIfNeeded().
void printFullAdcReportIfNeeded | ( | void | ) |
Definition at line 257 of file adc_inputs.cpp.
Referenced by updateDevConsoleState().
void removeChannel | ( | const char * | name, |
adc_channel_e | hwChannel | ||
) |
Definition at line 188 of file adc_inputs.cpp.
Referenced by setAdcChannelOverrides().
void updateSlowAdc | ( | efitick_t | nowNt | ) |
Definition at line 144 of file adc_inputs.cpp.
Referenced by initAdcInputs(), and MainLoop::PeriodicTask().
void waitForSlowAdc | ( | uint32_t | lastAdcCounter = 1 | ) |
Definition at line 223 of file adc_inputs.cpp.
Referenced by StepperMotorBase::setInitialPosition().
beuint16_t adc |
Definition at line 108 of file adc_inputs.h.
Referenced by getAdcInternalChannel().
uint16_t channel |
Definition at line 109 of file adc_inputs.h.
Referenced by addAdcChannelForTrigger(), boardGetAnalogInputDiagnostic(), CH_IRQ_HANDLER(), comp_lld_channel_enable(), configureRusefiLuaHooks(), configureTempSensor(), createRequest(), deInitIfValid(), disableTriggerStimulator(), DMAMUX_DisableChannel(), DMAMUX_DisablePeriodTrigger(), DMAMUX_EnableAlwaysOn(), DMAMUX_EnableChannel(), DMAMUX_EnablePeriodTrigger(), DMAMUX_SetSource(), EDMA_ClearChannelStatusFlags(), EDMA_CreateHandle(), EDMA_DisableChannelInterrupts(), EDMA_DisableChannelRequest(), EDMA_EnableAsyncRequest(), EDMA_EnableAutoStopRequest(), EDMA_EnableChannelInterrupts(), EDMA_EnableChannelRequest(), EDMA_GetChannelStatusFlags(), EDMA_GetRemainingMajorLoopCount(), EDMA_InstallTCD(), EDMA_ResetChannel(), EDMA_SetBandWidth(), EDMA_SetChannelLink(), EDMA_SetChannelPreemptionConfig(), EDMA_SetMinorOffsetConfig(), EDMA_SetModulo(), EDMA_SetTransferConfig(), EDMA_TriggerChannelStart(), efiExtiDisablePin(), efiExtiEnablePin(), emulatorApplyPinState(), enableFastAdcChannel(), enableFastAdcChannel(), Dac::GetLastVoltage(), getMcp3208adc(), getSentValue(), getSentValues(), getValue(), gpt_lld_polled_delay(), TriggerEmulatorHelper::handleEmulatorCallback(), initAuxSensors(), initFluidPressure(), initFuelLevel(), initIfValid(), initMaf(), initRangeSensors(), luaL_checkPwmIndex(), printAdcValue(), AdcSubscription::PrintInfo(), printSentInfo(), pwm_lld_disable_channel(), pwm_lld_disable_channel_notification(), pwm_lld_enable_channel(), pwm_lld_enable_channel_notification(), Ads1015::readChannel(), readGppwmChannel(), requestAdcValue(), requestAdcValueI(), sendToPot(), SENT_ISR_Handler(), SentDecoderThread(), setAnalogInputPin(), setDacVoltage(), setPotResistance(), setTriggerEmulatorRPM(), Dac::SetVoltage(), startKnockSampling(), startSimulatedTriggerSignal(), startTriggerEmulatorPins(), startTriggerInputPins(), stopTriggerEmulatorPins(), TunerstudioThread::ThreadTask(), updateRawSensors(), updateTriggerWaveformIfNeeded(), and validateCanChannelAndConvertFromHumanIntoZeroIndex().
Definition at line 115 of file adc_inputs.h.
Referenced by enableFastAdcChannel(), enableFastAdcChannel(), and getFastAdc().