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

Configuration specific to SAPI_SAFECHANNEL_TYPE_DUAL_REDUNDANT. More...

#include <sapi_safechannel.h>

Collaboration diagram for sapi_safechannel_dual_config_t:
[legend]

Data Fields

sapi_safechannel_endpoint_t endpoints [SAPI_SAFECHANNEL_MAX_LINKS]
uint32_t link_count
uint32_t sender_id
uint32_t expected_peer_id
sapi_duration_ms_t connect_timeout_ms
sapi_duration_ms_t ack_timeout_ms
sapi_dual_channel_status_callback_t status_callback
void * status_callback_ctx

Detailed Description

Configuration specific to SAPI_SAFECHANNEL_TYPE_DUAL_REDUNDANT.

Definition at line 94 of file sapi_safechannel.h.

Field Documentation

◆ endpoints

sapi_safechannel_endpoint_t sapi_safechannel_dual_config_t::endpoints[SAPI_SAFECHANNEL_MAX_LINKS]

Endpoints to open, 1..SAPI_SAFECHANNEL_MAX_LINKS of them.

Definition at line 97 of file sapi_safechannel.h.

◆ link_count

uint32_t sapi_safechannel_dual_config_t::link_count

Number of entries populated in endpoints[].

Definition at line 99 of file sapi_safechannel.h.

◆ sender_id

uint32_t sapi_safechannel_dual_config_t::sender_id

This instance's own EN 50159 sender identifier.

Definition at line 101 of file sapi_safechannel.h.

◆ expected_peer_id

uint32_t sapi_safechannel_dual_config_t::expected_peer_id

Expected sender_id of the peer at the other end of every link.

Definition at line 103 of file sapi_safechannel.h.

◆ connect_timeout_ms

sapi_duration_ms_t sapi_safechannel_dual_config_t::connect_timeout_ms

Max time sapi_safechannel_open() may block per endpoint establishing it.

Definition at line 105 of file sapi_safechannel.h.

◆ ack_timeout_ms

sapi_duration_ms_t sapi_safechannel_dual_config_t::ack_timeout_ms

Per-link budget sapi_safechannel_send() waits for that link's own ACK.

Definition at line 107 of file sapi_safechannel.h.

◆ status_callback

sapi_dual_channel_status_callback_t sapi_safechannel_dual_config_t::status_callback

Optional; NULL = no callback. Fires on aggregate status change.

Definition at line 109 of file sapi_safechannel.h.

◆ status_callback_ctx

void* sapi_safechannel_dual_config_t::status_callback_ctx

Opaque context passed back to status_callback. Ignored if NULL.

Definition at line 111 of file sapi_safechannel.h.


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