Commit Graph

6 Commits

Author SHA1 Message Date
Andrey Gusakov 8538c31fc4 adc: try to clean-up naming mess: convert helpers 2024-12-09 07:43:43 -05:00
Andrey Gusakov 0ed513f3f3 adc: try to clean naming mess: getVoltageDivided() rename to adcGetScaledVoltage() 2024-12-09 07:43:43 -05:00
Andrey Gusakov 000c6ee284 adc: try to clean naming mess: getAdcValue() rename to adcGetRawValue() 2024-12-09 07:43:43 -05:00
Andrey G a6ec708a6b
Support non-uniform dividers on ADC inputs (#4938)
* adc: support per-channel dividers

* S105: non-uniform analog dividers

* adc: default weak getAnalogInputDividerCoefficient() implementation

* adc: fix emulator compilation
2023-01-08 17:29:29 -05:00
Andrey G b92e3086d0
Adc isAdcChannelValid helper (#2188)
* Guard define argument

* ADC: isAdcChannelValid

Check for both <= EFI_ADC_NONE and >= EFI_ADC_LAST_CHANNEL
Also check for value out of enum range (corrupted settings)

* Fix unit tests
2021-01-05 16:02:20 -05:00
rusefi 8f4aecf7ca The Big Refactoring of 2019: folder structure #723 2020-08-02 20:46:40 -04:00