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_types.c File Reference

Diagnostics-only string rendering for the sapi_dual module's shared enums (ADR-020). More...

Include dependency graph for sapi_dual_types.c:

Go to the source code of this file.

Functions

const char * sapi_dual_state_to_string (sapi_dual_state_t state)
 Returns a short, static, human-readable string for a sapi_dual_state_t. Intended for diagnostics/logging only (e.g. as the Info= field of a sapi_log_write_event() call); never on a safety-decision path.
const char * sapi_dual_channel_status_to_string (sapi_dual_channel_status_t status)
 Returns a short, static, human-readable string for a sapi_dual_channel_status_t. Same diagnostics-only contract as sapi_dual_state_to_string().

Detailed Description

Diagnostics-only string rendering for the sapi_dual module's shared enums (ADR-020).

Definition in file sapi_dual_types.c.