|
LibJuno 1.0.4
LibJuno is a lightweight C11 library designed specifically for embedded systems.
|
Fixed-size UDP datagram message transferred between sender and receiver. More...
#include <udp_api.h>
Data Fields | |
| uint32_t | uSeqNum |
| Monotonically increasing sequence number; wraps at UINT32_MAX. | |
| uint32_t | uTimestampSec |
| Whole-second component of the sender's timestamp. | |
| uint32_t | uTimestampSubSec |
| Sub-second component of the sender's timestamp (units defined by application). | |
| uint8_t | arrPayload [64] |
| Fixed-size application-defined payload (64 bytes). | |
Fixed-size UDP datagram message transferred between sender and receiver.
Every Send and Receive call transfers exactly one UDP_THREAD_MSG_T as an atomic datagram (sizeof(UDP_THREAD_MSG_T) = 76 bytes). The fixed, compile-time-known size ensures datagrams are never truncated and no partial reads or writes are possible at the message boundary.
The arr prefix on arrPayload denotes a fixed-size static array field (an extension to the project Hungarian notation convention).
| uint8_t UDP_THREAD_MSG_TAG::arrPayload[64] |
Fixed-size application-defined payload (64 bytes).
| uint32_t UDP_THREAD_MSG_TAG::uSeqNum |
Monotonically increasing sequence number; wraps at UINT32_MAX.
| uint32_t UDP_THREAD_MSG_TAG::uTimestampSec |
Whole-second component of the sender's timestamp.
| uint32_t UDP_THREAD_MSG_TAG::uTimestampSubSec |
Sub-second component of the sender's timestamp (units defined by application).