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.

CCS/CC1310: RF_getCurrentTime() & (pDataInd->timestamp / pDataInd->timestamp2)

Part Number: CC1310

Tool/software: Code Composer Studio

Dear TI,
we have implemented a wireless synchronization method with TU15.4 stack with an accuracy in the order of a couple of ms.
At this time we have to compare a timestamp got with RF_getCurrentTime() with the timestamp of the pDataInd structure.

The problem is that the timestamp of the pDataInd struct seems to overflow at 0x2FFFFF in unit of 100us: "t1 = (pDataInd->timestamp * 80 + pDataInd->timestamp) / 400"
while "t2 = RF_getCurrentTime() / 400" at 10737418 (uint32 / 400 ----> unit of 100us)

If "t1 < t2" then we apply the correction for the overflow of t1: "t2 = t2 % 0x2FFFFF". But when t2 overflows the two timestamps will not be align anymore. Is there any way to get t1 of the same size of t2?

Thank you very much
Best regards