|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
QNX RTOS example application demonstrating RteFramework. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/neutrino.h>#include <sys/netmgr.h>#include <sys/siginfo.h>#include "rte/status.h"#include "rte/types.h"#include "rte/log.h"#include "rte/safestate.h"Go to the source code of this file.
Data Structures | |
| struct | app_context_t |
| struct | cmd_reply_t |
Macros | |
| #define | SERVER_NAME "railway-server" |
| #define | CHANNEL_NAME "/railway/cmd" |
| #define | MESSAGE_BUFFER_SIZE 256 |
Functions | |
| static rte_status_t | qnx_init_channel (void) |
| Initialize QNX message channel. | |
| static rte_status_t | process_train_update (const train_message_t *msg, cmd_reply_t *reply) |
| Process train update message. | |
| static rte_status_t | handle_message (train_message_t *msg, int rcvid) |
| Handle incoming message. | |
| static rte_status_t | server_loop (void) |
| Main server loop. | |
| static rte_status_t | app_shutdown (void) |
| Shutdown application. | |
| int | main (int argc, char *argv[]) |
Variables | |
| static app_context_t | g_app |
QNX RTOS example application demonstrating RteFramework.
This example shows a railway control server running on QNX RTOS with deterministic real-time guarantees. It demonstrates:
Use case: Train control server
Compilation: Use cmake with Toolchain-QNX.cmake
Definition in file main.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |