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
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
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#define RBC_TRAIN_MAX_WIRE_MSG_SIZE 512U
29
40 uint8_t *out_buffer,
41 size_t buffer_size,
42 size_t *out_bytes_written);
43
52bool rbc_train_codec_decode_train_to_track(const uint8_t *in_buffer,
53 size_t buffer_size,
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* RBC_TRAIN_MESSAGE_CODEC_H */
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,...
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,...