AD4130_PIN_FN_NONE
if (st->pins_fn[i + AD4130_AIN2_P1] == AD4130_PIN_FN_NONE)
bool valid = st->pins_fn[pin] == AD4130_PIN_FN_NONE;