RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
Loading...
Searching...
No Matches
gateway_c_selfstatus.h
Go to the documentation of this file.
1#ifndef RTE_EXAMPLE_GATEWAY_C_SELFSTATUS_H
2#define RTE_EXAMPLE_GATEWAY_C_SELFSTATUS_H
3
12
13#include "gateway_c_types.h"
14
18void gateway_c_selfstatus_init(const char *broker_channel_name);
19
27void gateway_c_selfstatus_tick(const gateway_c_context_t *ctx, uint32_t cycle, const char *log_tag,
28 uint8_t src_id);
29
36void gateway_c_selfstatus_publish(uint8_t src_id, const char *payload);
37
39
40#endif /* RTE_EXAMPLE_GATEWAY_C_SELFSTATUS_H */
void gateway_c_selfstatus_shutdown(void)
void gateway_c_selfstatus_tick(const gateway_c_context_t *ctx, uint32_t cycle, const char *log_tag, uint8_t src_id)
Call once per cycle. Every RTE_EXAMPLE_STATUS_PERIOD_MS (and on cycle 1) logs [unit] [-] [STATUS] [se...
void gateway_c_selfstatus_publish(uint8_t src_id, const char *payload)
Republish a foreign unit's status to the C broker as a PUBLISH(STATUS) with source id src_id (rbc_uti...
void gateway_c_selfstatus_init(const char *broker_channel_name)
Setup the broker CONNECT link. broker_channel_name is one of "c-broker-train"/"-il"/"-ctc"....
Shared wire-format constants and gateway_c_context_t.
One gateway_c_context_t instance's state.