Matan, could you please change the output of retu-adc to decimal instead of hex? I would do it myself, but, again, my C skills are lacking
for(i=s;i<e;i++) { printf("%d: %08x ", i, ioctl(f,RETU_IOCH_ADC_READ, i)); if((i&3)==3)printf("\n"); }
for(i=s;i<e;i++) { printf("%d: %010d ", i, ioctl(f,RETU_IOCH_ADC_READ, i)); if((i&3)==3)printf("\n"); }