I am designing an embedded SW with multiple peripherals.

I have data from multiple(say 3 to 4) peripherals at different instances. I need to find the instance at which i have the data from all the peripherals and store that data in the SW. Remaining data is to be discarded.

How to find out the synchronized records from multiple peripherals?