Tool/software: Code Composer Studio
While receiving packages, i am trying to get the RSSI value. In Code composer, debug mode, i get blocked at the RF_runCmd function for getting the RSSI.
What I am doing:
Set the RF_cmdPropRx with the following values, before issuing the command:
RF_cmdPropRx.pQueue = &dataQueue;
RF_cmdPropRx.rxConf.bAutoFlushIgnored = 1;
RF_cmdPropRx.rxConf.bAutoFlushCrcErr = 1;
RF_cmdPropRx.maxPktLen = MAX_LENGTH;
RF_cmdPropRx.pktConf.bRepeatOk = 1;
RF_cmdPropRx.pktConf.bRepeatNok = 1;
RF_EventMask terminationReason = RF_runCmd( rfHandle, (RF_Op*) &RF_cmdPropRx, RF_PriorityNormal, &callbackRx, (RF_EventRxEntryDone | RF_EventLastCmdDone | RF_EventRxNOk | RF_EventRxOk));
Inside the callbackRx function, i try to use a command to obtain the RSSI value
RF_EventMask RSSI = RF_runCmd(rfHandle, (RF_Op*) &RF_cmdGetRSSI, RF_PriorityHigh, NULL, 0); //I have tried setting the priority both higher and lower
RF_cmdGetRSSI is declared as follows:
rfc_CMD_GET_RSSI_t RF_cmdGetRSSI =
{
.commandNo = 0x0403,
};