void TI1_OnInterrupt(void){ byte medsensor; bool waitformed; waitformed = 1; adc_Measure(waitformed); adc_GetValue8(&medsensor); flag = 'Z';}
byte adc_GetValue8(byte *Values){ if (!OutFlg) { /* Is output flag set— */ return ERR_NOTAVAIL; /* If no then error */ } Values[0] = adc_OutV[0]; /* Save measured values to the output buffer */ Values[1] = adc_OutV[1]; /* Save measured values to the output buffer */ Values[2] = adc_OutV[2]; /* Save measured values to the output buffer */ Values[3] = adc_OutV[3]; /* Save measured values to the output buffer */ return ERR_OK; /* OK */}
void TI1_OnInterrupt(void){ byte medsensor[4]; bool waitformed; waitformed = 1; adc_Measure(waitformed); adc_GetValue8(medsensor); flag = 'Z';}