This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1354P10: RF queue new data check

Part Number: CC1354P10

Hi Team,

I am currently using RFqueue.c file which has only 3 functions like RFQueue_nextEntry, RFQueue_getDataEntry and RFQueue_defineQueue.

My requirement is to check if data is available then read the data but When move the pointer to  pNextEntry, we are simply moving to the next entry in the queue. The current entry remains in memory.

Here Cant use the empty queue method because always data will be available.

Is there a way to check when new data comes in queue, immediately read it from other file and process it instead of doing it in callback function.

  • Hi Rizwan,

    In the rfpacketRx example, we have used the data queue.

     RF_EventRxEntryDone event triggers a callback as soon as new data is filled into the entry. 

    Then the RFQueue_nextEntry() function marks the data entry as DATA_ENTRY_PENDING. This allows the RF core to write data to this data entry again.

    So, when there is new data in the queue, the even is posted, the callback is triggered and data is processed. Why do you not want a callback?

    Regards,
    Sid 

  • Hi Sid,

    I need a callback, My worry is after receiving a packet if I process it inside a callback and there is a chance before processing any other packet may come up.

  • Hi Rizwan,

    You need to at least copy the received data into another buffer and mark the data entry as DATA_ENTRY_PENDING in the callback.

    Regards,

    Sid