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.

RTOS/LAUNCHXL-CC1310: How to disable the event mask- RF_EventNDataWritten during the Rx operation

Part Number: LAUNCHXL-CC1310

Tool/software: TI-RTOS

hi,

I wan to know how to disable the event mask- RF_EventNDataWritten during the Rx operation after enable it during arming RF receiver.

in my application, the receiving package length is not know at the beginning, so we use partial receiving mode to catch the length bytes first, then set the fixed receiving length.

we arm the rf rx by :

        RadioIF_Cmd_Handle_Rx = RF_postCmd(RadioIF_Rf_Handle, (RF_Op*)&RF_cmdPropRx, RF_PriorityNormal ,
                                                     &RadioIF_rxCallback, RF_EventNDataWritten); 
it works. but the function RadioIF_rxCallback() kept calling on every  NDataWritten till the package fully received.
we want to disable the RF_EventNDataWritten event after we get to know the first data length byte. to let the interrupt not so busy during receiving.
 how to do it? which command we can use?
B/R,
Shaowei
  • Hi Shaowei

     

    There are no support for what you try to achieve in the RF Driver. What yo can try is to use driverlib functions to disable the interrupt.

    You can look at the driverlib documentation for the RF Core here:

    Please note that we have not tested this and do not usually recommend "overriding" what the RF Driver does, so you need to test this carefully, and make sure that you are not messing up for the RF driver.

    BR

    Siri