Question
How to compare 2 AdcHandle objects equal or not?
I have 2 ADC_HandlerTypeDef objects came from 2 different channel of ADC1, and I have an ADC function, like this:
ADC_read(ADC_HandlerTypeDef ADC_Handler)
How can I use this function for 2 channels?
I tried this:
if (ADC_Handler == ADC_Handler_1)
{
...
}
if (ADC_Handler == ADC_Handler_2)
{
...
}
there was compile error for "==".
