UG2_WAIT_READY
#define UG2_WAIT_READY if(ug2_wait_ready(iot, ioh) == 0) return 0;
#undef UG2_WAIT_READY