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

Configuration for sapi_dual_msgchannel_init(). More...

#include <sapi_dual_msgchannel.h>

Data Fields

sapi_netlink_handle_t link
uint32_t sender_id
uint32_t expected_peer_id

Detailed Description

Configuration for sapi_dual_msgchannel_init().

Definition at line 77 of file sapi_dual_msgchannel.h.

Field Documentation

◆ link

sapi_netlink_handle_t sapi_dual_msgchannel_config_t::link

Already-open link this channel sends/receives fixed-size sapi_vital_message_t frames over. sapi_netlink_open() must have been called with config->message_size == sizeof(sapi_vital_message_t) for that link. Must not be NULL; ownership (closing it) stays with the caller.

Definition at line 84 of file sapi_dual_msgchannel.h.

◆ sender_id

uint32_t sapi_dual_msgchannel_config_t::sender_id

This instance's own EN 50159 sender identifier (e.g. a site or role ID), stamped on every frame this channel sends.

Definition at line 87 of file sapi_dual_msgchannel.h.

◆ expected_peer_id

uint32_t sapi_dual_msgchannel_config_t::expected_peer_id

Expected sender_id of the peer at the other end of link; any inbound frame whose sender_id differs is rejected as a possible masquerade rather than delivered (ADR-020 section 1).

Definition at line 91 of file sapi_dual_msgchannel.h.


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