RTE RBC 2oo2 Reference Application
0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
Toggle main menu visibility
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
18
void
gateway_c_selfstatus_init
(
const
char
*broker_channel_name);
19
27
void
gateway_c_selfstatus_tick
(
const
gateway_c_context_t
*ctx, uint32_t cycle,
const
char
*log_tag,
28
uint8_t src_id);
29
36
void
gateway_c_selfstatus_publish
(uint8_t src_id,
const
char
*payload);
37
38
void
gateway_c_selfstatus_shutdown
(
void
);
39
40
#endif
/* RTE_EXAMPLE_GATEWAY_C_SELFSTATUS_H */
gateway_c_selfstatus_shutdown
void gateway_c_selfstatus_shutdown(void)
Definition
gateway_c_selfstatus.c:89
gateway_c_selfstatus_tick
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...
Definition
gateway_c_selfstatus.c:42
gateway_c_selfstatus_publish
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...
Definition
gateway_c_selfstatus.c:76
gateway_c_selfstatus_init
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"....
Definition
gateway_c_selfstatus.c:23
gateway_c_types.h
Shared wire-format constants and gateway_c_context_t.
gateway_c_context_t
One gateway_c_context_t instance's state.
Definition
gateway_c_types.h:58
src
application
C
gateway_c_selfstatus.h
Generated by
1.18.0