ADC_TM5_NUM_CHANNELS
if (chip->channels[i].channel >= ADC_TM5_NUM_CHANNELS) {
if (chan >= ADC_TM5_NUM_CHANNELS) {