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.

CC2640R2F: Using RF_ratCapture to capture TX_DONE event timestamp.

Part Number: CC2640R2F


I am trying to capture the exact time where the transmitter started to transmit a certain BLE packet while using the SimpleCentral example project.

I have tried configuring the RF_ratCapture with the following.

RF_RatConfigCapture captureConfig =
    {
    .callback=      &my_callback,
    .captureMode=   RF_RatCaptureModeRising,
    .channel=       RF_RatChannelAny,
    .repeat=        RF_RatCaptureRepeat,
    .source=        RF_RatCaptureSourceEventGeneric
    };

    RF_RatHandle ratHandle = RF_ratCapture(rfHandle, &captureConfig, NULL);

But sadly, I was able to receive only one callback, on which the event mask was 0x08000000.

Worth mentioning I did try setting the `RFCCpeIntEnable` register with `RFC_DBELL_RFCPEIFG_TX_DONE_M`, but still, no luck.

Am I missing something? and also, is there another, more accurate way to capture TX times on CC2640R2?

Thanks!