|
RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
|
ERTMS Subset-026 §5.12 Plain Text Message to Driver (Packet 72) Procedure Implementation. More...
#include "ab_gp_proc_text_message.h"#include "rte/oal/memory/rte_mem_util.h"#include "rte/utils/string/rte_string.h"Go to the source code of this file.
Functions | |
| void | ab_gp_proc_text_message_init (ab_gp_ertms_train_context_t *ctx) |
| Initializes text message tracking for a train context. | |
| bool | ab_gp_proc_text_message_send (ab_gp_ertms_train_context_t *ctx, uint8_t nid_textmessage, uint8_t q_textclass, uint8_t q_textconfirm, uint32_t duration_s, const char *text, rbc_packet_72_text_message_t *out_p72) |
| Dispatches a plain text message to the driver DMI (Subset-026 §5.12 / Packet 72). | |
| bool | ab_gp_proc_text_message_handle_ack (ab_gp_ertms_train_context_t *ctx, uint8_t nid_textmessage, uint32_t timestamp_ms) |
| Handles driver acknowledgement of a text message (Msg 146 / Msg 158). | |
| bool | ab_gp_proc_text_message_is_pending_ack (const ab_gp_ertms_train_context_t *ctx) |
| Checks if a driver text message acknowledgement is currently pending. | |
ERTMS Subset-026 §5.12 Plain Text Message to Driver (Packet 72) Procedure Implementation.
Definition in file ab_gp_proc_text_message.c.
| void ab_gp_proc_text_message_init | ( | ab_gp_ertms_train_context_t * | ctx | ) |
Initializes text message tracking for a train context.
| [in,out] | ctx | Train ERTMS context. |
Definition at line 11 of file ab_gp_proc_text_message.c.
| bool ab_gp_proc_text_message_send | ( | ab_gp_ertms_train_context_t * | ctx, |
| uint8_t | nid_textmessage, | ||
| uint8_t | q_textclass, | ||
| uint8_t | q_textconfirm, | ||
| uint32_t | duration_s, | ||
| const char * | text, | ||
| rbc_packet_72_text_message_t * | out_p72 ) |
Dispatches a plain text message to the driver DMI (Subset-026 §5.12 / Packet 72).
| [in,out] | ctx | Train ERTMS context. |
| [in] | nid_textmessage | Unique message identifier (1..255). |
| [in] | q_textclass | Class: 1 = Important, 0 = Auxiliary. |
| [in] | q_textconfirm | Confirmation required: 1 = Ack requested, 0 = No ack. |
| [in] | duration_s | Display duration in seconds. |
| [in] | text | Null-terminated ASCII text string. |
| [out] | out_p72 | Destination Packet 72 structure. |
Definition at line 28 of file ab_gp_proc_text_message.c.
| bool ab_gp_proc_text_message_handle_ack | ( | ab_gp_ertms_train_context_t * | ctx, |
| uint8_t | nid_textmessage, | ||
| uint32_t | timestamp_ms ) |
Handles driver acknowledgement of a text message (Msg 146 / Msg 158).
| [in,out] | ctx | Train ERTMS context. |
| [in] | nid_textmessage | Message ID being acknowledged. |
| [in] | timestamp_ms | RTE timestamp when ack arrived. |
Definition at line 66 of file ab_gp_proc_text_message.c.
| bool ab_gp_proc_text_message_is_pending_ack | ( | const ab_gp_ertms_train_context_t * | ctx | ) |
Checks if a driver text message acknowledgement is currently pending.
| [in] | ctx | Train ERTMS context. |
Definition at line 87 of file ab_gp_proc_text_message.c.