Hi, in our application we use cc1310 and tirtos_cc13xx_cc26xx_2_21_01_08;
Here the code:
1. Prepare sniff command .
RF_cmdPropRxSniff.commandNo = CMD_PROP_RX_SNIFF;
RF_cmdPropRxSniff.startTrigger.pastTrig = 1;
Start time equal to current time plus some seconds.
RF_cmdPropRxSniff.startTime = Current time + delta T
Start trigger is TRIG_ABSTIME
RF_cmdPropRxSniff.startTrigger.triggerType = TRIG_ABSTIME;
End Trigger is TRIG_REL_START.
RF_cmdPropRxSniff.endTime = time;
RF_cmdPropRxSniff.endTrigger.triggerType = TRIG_REL_START;
RF_EventMask bmEvent = RF_EventRxEntryDone | RF_EventLastCmdDone | RF_EventCmdAborted | RF_EventCmdStopped | RF_EventCmdCancelled;
Send command:
RF_postCmd(RfHandle, (RF_Op*)&RF_cmdPropRxSniff,RF_PriorityNormal, Callback, bmEvent);
2. After some timeout about 10-20 msec) I try to abort current command as following:
RF_Stat res = RF_flushCmd(RfHandle, RF_CMDHANDLE_FLUSH_ALL, 0);
Sometimes the result is RF_StatInvalidParamsError (Invalid API parameters)
In this case the next command started only after finishing previous command (RF_cmdPropRxSniff)
and RF_cmdPropRxSniff.status is IDLE (Operation not started).
Q1: what goes wrong?
Q2: what I can do fix the problem(add retries...0?
BR
Leonid