I'm trying to implement streaming application like rfAudioTx example in Simplelink audio SDK, but I'm seeing different behavior in running rfc_CMD_PROP_TX_t by these two approaches:
1. Using RF_runCmd:
RF_EventMask terminationReason = RF_EventCmdAborted | RF_EventCmdPreempted; while(( terminationReason & RF_EventCmdAborted ) && ( terminationReason & RF_EventCmdPreempted )) { // Re-run if command was aborted due to SW TCXO compensation terminationReason = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, NULL, 0); }
2. Using RF_postCmd:
RF_CmdHandle cmdHandle = RF_postCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, txDoneCB, 0); if (cmdHandle == RF_ALLOC_ERROR) { printf0("Error in Radio"); while (1); }
But packets reception works perfectly in RF_runCmd only, RF_postCmd gives different result in reception of packets
I haven't changed anything related to RF_cmdPropTx command in these two ways, I'm not able to figure out reason behind this different behavior.
Let me know if I should provide more information regarding this query