I am trying as it says on this site. <https://www.xcore.com/viewtopic.php?t=5893>
I could see the same output as in the document < AN01024_-xCONNECT-dynamic-configuration-demo_1.0.1rc01> document shows.
but i can't find how to send data. Through XN specification document In Chapter 5, I found the procedure for linking.
https://www.xmos.com/download/XN-Specif ... 3944B).pdf
Q1. If i want to send data at this example, do i should follow the procedure and add code at this example as the document says?
this is transceiver's source code
Code: Select all
unsafe { c <: 0x9;}
if (err_ctr++ == SEND_CTRL_TOKEN*2) {
err_ctr = 0;
unsafe {
// outct((chanend)c,
//// XS1_CT_ACK
// XS1_CT_END
//
// ); //Send a control token as app sync point
Code: Select all
case 4: //receive data loop
char r = 'z';
while (rx_loop) {
unsafe {
select {
case test_ct(c, ctrl_tkn_ctr):
rx_loop_tmr :> t;
break;
//case c :> j: break; // breaks at unexpected control tokens
case rx_loop_tmr when timerafter(t + RX_TIME_OUT_TICKS) :> void:
SET_SHARED_GLOBAL(g_ctrl_tokens, ctrl_tkn_ctr);
SET_SHARED_GLOBAL(g_timeout_cnts, tm_out_ctr);
printf("g_ctrl token : %x \n",g_ctrl_tokens);
printf("ctrl_tkn_ctr : %x\n",ctrl_tkn_ctr);
printf("\nTimed out...\n\n");
rx_loop = 0;
comm_state = 3;
break;
}
}
} //while (rx_loop)
break;