move adc state vars to within EMULIN define switch