大家好!
在调试官方rfEasyLinkRx例程中,确定数据能够正常收发。但我想查看接收到的数据是否与发送端一样,该看那个数据?
代码中调用EasyLink_receiveAsync函数接收数据,但数据在哪儿,debug如何查看?
Felix ZF:
接收到的数据放在rxDoneCb中的rxPacket中。
void rxDoneCb(EasyLink_RxPacket * rxPacket, EasyLink_Status status)
{ if (status == EasyLink_Status_Success) { /* Toggle LED2 to indicate RX */ PIN_setOutputValue(pinHandle, Board_LED2,!PIN_getOutputValue(Board_LED2)); } else if(status == EasyLink_Status_Aborted) { /* Toggle LED1 to indicate command aborted */ PIN_setOutputValue(pinHandle, Board_LED1,!PIN_getOutputValue(Board_LED1)); } else { /* Toggle LED1 and LED2 to indicate error */ PIN_setOutputValue(pinHandle, Board_LED1,!PIN_getOutputValue(Board_LED1)); PIN_setOutputValue(pinHandle, Board_LED2,!PIN_getOutputValue(Board_LED2)); }
Semaphore_post(rxDoneSem);}
TI中文支持网
