library/ti_io/adc: corrected inverted pair indexing