tw_initconnection
error = tw_initconnection(tw_dev, TW_INIT_MESSAGE_CREDITS);
if (tw_initconnection(tw_dev, 1)) {