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

One candidate's info for one rte_election_execute() call. The caller builds this array fresh each call from whatever transport it uses to learn about the other replicas - this module does not retain it between calls except via the state recomputed into rte_election_t itself. More...

#include <rte_election.h>

Data Fields

uint32_t id
uint64_t startup_timestamp_ms
bool degraded

Detailed Description

One candidate's info for one rte_election_execute() call. The caller builds this array fresh each call from whatever transport it uses to learn about the other replicas - this module does not retain it between calls except via the state recomputed into rte_election_t itself.

Definition at line 68 of file rte_election.h.

Field Documentation

◆ id

uint32_t rte_election_candidate_t::id

This candidate's tie-break identifier. Must be unique within one call's snapshot; duplicate ids within a single snapshot make that call's result unspecified (defensive behavior only - see rte_election_execute()'s own doc).

Definition at line 73 of file rte_election.h.

◆ startup_timestamp_ms

uint64_t rte_election_candidate_t::startup_timestamp_ms

This candidate's own startup timestamp, same clock domain/meaning as rte_dual_negotiator_config_t::own_id's own timestamp (older/smaller wins).

Definition at line 76 of file rte_election.h.

◆ degraded

bool rte_election_candidate_t::degraded

This candidate's own redundancy-degradation bit (e.g. an already-degraded rte_dual_channel_t sub-link count), consulted only if this candidate wins (REQ-ELECTION-005). Ignored for a losing candidate.

Definition at line 80 of file rte_election.h.


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