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_negotiator_t Struct Reference

One sapi_dual_negotiator_t instance's state. Caller-owned storage; every field is private - reach it only through the functions below. More...

#include <sapi_dual_negotiator.h>

Collaboration diagram for sapi_dual_negotiator_t:
[legend]

Data Fields

sapi_dual_channel_tchannel
uint32_t own_id
uint32_t peer_id
sapi_duration_ms_t peer_lost_timeout_ms
sapi_dual_negotiator_state_change_callback_t state_change_callback
void * state_change_callback_ctx
uint64_t own_startup_timestamp_ms
bool own_channel_degraded
bool have_peer_startup_timestamp
uint64_t peer_startup_timestamp_ms
bool peer_channel_degraded
sapi_dual_state_t own_state
sapi_dual_state_t peer_state
bool have_last_peer_seen
sapi_timestamp_ms_t last_peer_seen_ms

Detailed Description

One sapi_dual_negotiator_t instance's state. Caller-owned storage; every field is private - reach it only through the functions below.

Definition at line 81 of file sapi_dual_negotiator.h.

Field Documentation

◆ channel

sapi_dual_channel_t* sapi_dual_negotiator_t::channel

Definition at line 83 of file sapi_dual_negotiator.h.

◆ own_id

uint32_t sapi_dual_negotiator_t::own_id

Definition at line 84 of file sapi_dual_negotiator.h.

◆ peer_id

uint32_t sapi_dual_negotiator_t::peer_id

Definition at line 85 of file sapi_dual_negotiator.h.

◆ peer_lost_timeout_ms

sapi_duration_ms_t sapi_dual_negotiator_t::peer_lost_timeout_ms

Definition at line 86 of file sapi_dual_negotiator.h.

◆ state_change_callback

sapi_dual_negotiator_state_change_callback_t sapi_dual_negotiator_t::state_change_callback

Definition at line 87 of file sapi_dual_negotiator.h.

◆ state_change_callback_ctx

void* sapi_dual_negotiator_t::state_change_callback_ctx

Definition at line 88 of file sapi_dual_negotiator.h.

◆ own_startup_timestamp_ms

uint64_t sapi_dual_negotiator_t::own_startup_timestamp_ms

Definition at line 90 of file sapi_dual_negotiator.h.

◆ own_channel_degraded

bool sapi_dual_negotiator_t::own_channel_degraded

Definition at line 91 of file sapi_dual_negotiator.h.

◆ have_peer_startup_timestamp

bool sapi_dual_negotiator_t::have_peer_startup_timestamp

Definition at line 93 of file sapi_dual_negotiator.h.

◆ peer_startup_timestamp_ms

uint64_t sapi_dual_negotiator_t::peer_startup_timestamp_ms

Definition at line 94 of file sapi_dual_negotiator.h.

◆ peer_channel_degraded

bool sapi_dual_negotiator_t::peer_channel_degraded

Definition at line 95 of file sapi_dual_negotiator.h.

◆ own_state

sapi_dual_state_t sapi_dual_negotiator_t::own_state

Definition at line 97 of file sapi_dual_negotiator.h.

◆ peer_state

sapi_dual_state_t sapi_dual_negotiator_t::peer_state

Definition at line 98 of file sapi_dual_negotiator.h.

◆ have_last_peer_seen

bool sapi_dual_negotiator_t::have_last_peer_seen

Definition at line 100 of file sapi_dual_negotiator.h.

◆ last_peer_seen_ms

sapi_timestamp_ms_t sapi_dual_negotiator_t::last_peer_seen_ms

Definition at line 101 of file sapi_dual_negotiator.h.


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