I am trying to write a program that handles messages between two devices that may send a message at any time. I am trying to understand how to check & know if my CC1352R1 TI board has received an RF message from the other TI board. Usually, I have the board sit in RF receive mode using this function call: RF_EventMask terminationReason = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropRx, RF_PriorityNormal, &callback, RF_EventRxEntryDone); but then I cannot do anything until an RF message comes in.
I would like to be able to check the RF queue status or to have some way to know that an RF message was received. Is this possible? Does the RF core have an internal buffer or data structure that holds received RF messages even if the RF_runCMD() function is not called with the RF_cmdPropRx command?
In the same vein, is there a way to do the same thing with the UART2 receive buffer? In other words, to know when data is received on the UART2 buffer?
EDIT:
I am using SDK version CC13xx_CC26xx_6_10_00_29