library/ti_io/adc: support inversion