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
ab_gp_ertms_train_message_codec.h
Go to the documentation of this file.
1
13
14
#ifndef AB_GP_ERTMS_TRAIN_MESSAGE_CODEC_H
15
#define AB_GP_ERTMS_TRAIN_MESSAGE_CODEC_H
16
17
#include <stddef.h>
18
#include <stdint.h>
19
#include <stdbool.h>
20
21
#include "
ab_gp_ertms_train_interface.h
"
22
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
#define RBC_TRAIN_MAX_WIRE_MSG_SIZE 512U
29
39
bool
rbc_train_codec_encode_track_to_train
(
const
rbc_train_outbound_msg_t
*msg,
40
uint8_t *out_buffer,
41
size_t
buffer_size,
42
size_t
*out_bytes_written);
43
52
bool
rbc_train_codec_decode_train_to_track
(
const
uint8_t *in_buffer,
53
size_t
buffer_size,
54
rbc_train_inbound_msg_t
*out_msg);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* RBC_TRAIN_MESSAGE_CODEC_H */
ab_gp_ertms_train_interface.h
rbc_train_codec_decode_train_to_track
bool rbc_train_codec_decode_train_to_track(const uint8_t *in_buffer, size_t buffer_size, rbc_train_inbound_msg_t *out_msg)
Decodes an inbound Train-to-Track message (Msg 129, 130, 132, 136, 146, 147, 150, 155,...
Definition
ab_gp_ertms_train_message_codec.c:264
rbc_train_codec_encode_track_to_train
bool rbc_train_codec_encode_track_to_train(const rbc_train_outbound_msg_t *msg, uint8_t *out_buffer, size_t buffer_size, size_t *out_bytes_written)
Encodes an outbound Track-to-Train message (Msg 2, 3, 6, 8, 9, 15, 16, 18, 24, 33,...
Definition
ab_gp_ertms_train_message_codec.c:30
rbc_train_inbound_msg_t
Definition
ab_gp_ertms_train_interface.h:34
rbc_train_outbound_msg_t
Definition
ab_gp_ertms_train_interface.h:52
src
application
AB
GP
ertms
train
ab_gp_ertms_train_message_codec.h
Generated by
1.18.0