In my embedded project, I have one process that creates values that should be transmitted, and another that processes them. I made the below code to allow the creation process to write up to 2 packets ...