LibJuno 1.0.4
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
UDP_THREAD_MSG_TAG Struct Reference

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).
 

Detailed Description

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).

Field Documentation

◆ arrPayload

uint8_t UDP_THREAD_MSG_TAG::arrPayload[64]

Fixed-size application-defined payload (64 bytes).

◆ uSeqNum

uint32_t UDP_THREAD_MSG_TAG::uSeqNum

Monotonically increasing sequence number; wraps at UINT32_MAX.

◆ uTimestampSec

uint32_t UDP_THREAD_MSG_TAG::uTimestampSec

Whole-second component of the sender's timestamp.

◆ uTimestampSubSec

uint32_t UDP_THREAD_MSG_TAG::uTimestampSubSec

Sub-second component of the sender's timestamp (units defined by application).


The documentation for this struct was generated from the following file: