fprintf(stderr,"TX RBUF: ri %d wi %d ra %d wa %d\n",tx_rbuf.read_index,tx_rbuf.write_index,rbuf_read_amount(&tx_rbuf),rbuf_write_amount(&tx_rbuf));
fprintf(stderr,"RX RBUF: ri %d wi %d ra %d wa %d\n",rx_rbuf.read_index,rx_rbuf.write_index,rbuf_read_amount(&rx_rbuf),rbuf_write_amount(&rx_rbuf));
fprintf(stderr,"TRXW RBUF: ri %d wi %d ra %d wa %d\n",trxw_rbuf[0].read_index,trxw_rbuf[0].write_index,rbuf_read_amount(&trxw_rbuf[0]),rbuf_write_amount(&trxw_rbuf[0]));
fprintf(stderr,"TRXR RBUF: ri %d wi %d ra %d wa %d\n",trxr_rbuf[0].read_index,trxr_rbuf[0].write_index,rbuf_read_amount(&trxr_rbuf[0]),rbuf_write_amount(&trxr_rbuf[0]));