Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_vital_message_t Struct Reference

Vital channel message with integrated CRC-64. More...

#include <rte_checksum.h>

Data Fields

uint32_t sequence_number
uint32_t sender_id
uint32_t timestamp_ms
uint8_t payload_size
uint8_t padding
uint16_t reserved
uint8_t payload [248]
rte_crc64_t crc64

Detailed Description

Vital channel message with integrated CRC-64.

Wrapper structure for redundant channel messages that ensures data integrity across transmission.

Usage pattern:

  1. Sender: Wrap data with CRC, send wrapped message
  2. Receiver: Receive wrapped message, unwrap (verify CRC)
  3. On mismatch: Trigger safe-state

Definition at line 250 of file rte_checksum.h.

Field Documentation

◆ sequence_number

uint32_t rte_vital_message_t::sequence_number

Message sequence (detect reordering)

Definition at line 251 of file rte_checksum.h.

◆ sender_id

uint32_t rte_vital_message_t::sender_id

Source channel/site ID

Definition at line 252 of file rte_checksum.h.

◆ timestamp_ms

uint32_t rte_vital_message_t::timestamp_ms

Message creation time

Definition at line 253 of file rte_checksum.h.

◆ payload_size

uint8_t rte_vital_message_t::payload_size

Payload size in bytes (max 255)

Definition at line 254 of file rte_checksum.h.

◆ padding

uint8_t rte_vital_message_t::padding

Padding for alignment

Definition at line 255 of file rte_checksum.h.

◆ reserved

uint16_t rte_vital_message_t::reserved

Reserved for future use

Definition at line 256 of file rte_checksum.h.

◆ payload

uint8_t rte_vital_message_t::payload[248]

Payload data (fits in 256-byte message)

Definition at line 258 of file rte_checksum.h.

◆ crc64

rte_crc64_t rte_vital_message_t::crc64

CRC-64 of entire message including payload

Definition at line 259 of file rte_checksum.h.


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