riocm_exch
state = riocm_exch(ch, RIO_CM_DESTROYING);
riocm_exch(ch, RIO_CM_DISCONNECT);
riocm_exch(ch, RIO_CM_CONNECTED);