11#if HAL_USE_ADC || defined(__DOXYGEN__)
146 return EFI_ADC_ERROR;
162 return (hwChannel - EFI_ADC_0);
169 return (EFI_ADC_0 + hwIndex);
brain_pin_e getAdcChannelBrainPin(const char *msg, adc_channel_e hwChannel)
int getAdcInternalChannel(ADC_TypeDef *adc, adc_channel_e hwChannel)
int getAdcChannelPin(adc_channel_e hwChannel)
int getRemainingStack(thread_t *otp)
bool adcIsMuxedInput(adc_channel_e hwChannel)
adc_channel_e getHwChannelForAdcInput(ADC_TypeDef *adc, size_t hwIndex)
adc_channel_e getAdcChannel(brain_pin_e pin)
adc_channel_e adcMuxedGetParent(adc_channel_e hwChannel)
ioportid_t getAdcChannelPort(const char *msg, adc_channel_e hwChannel)
ioportid_t getHwPort(const char *msg, brain_pin_e brainPin)
ioportmask_t getHwPin(const char *msg, brain_pin_e brainPin)
void firmwareError(ObdCode code, const char *fmt,...)
GPIO_TypeDef * ioportid_t
Port Identifier.
@ CUSTOM_ERR_ADC_UNKNOWN_CHANNEL