SPC560D30L3 - ADC states
Hello,
I am trying to use the ADC driver (ADCD2) for SPC560D30L3 device using Discovery kit (I have replaced SPC560D40 with SPC560D30 MCU). I am trying to implement a state machine using different states of ADC driver. If my understanding is correct, I shall access the states as below,
switch (ADCD2.state){case ADC_UNINIT:break;case ADC_STOP:
break;
case ADC_READY:
break;
case ADC_ACTIVE:
break;
case ADC_COMPLETE:
break;
case ADC_ERROR:
break;
}If above way is correct the statement 'ADCD2.state' itself is not working! Can anybody clarify the issue? What other settings are required?Thanks in advance for your help.Mike. #adc