SafeAPI RBC 2oo2 Generic Application
IL/CTC route and train logic for the safeAPIRBC2oo2 reference RBC
Loading...
Searching...
No Matches
ab_ga_ertms_ctc_codec.h
1
7
8#ifndef AB_GA_ERTMS_CTC_CODEC_H
9#define AB_GA_ERTMS_CTC_CODEC_H
10
11#include <stddef.h>
12#include <stdint.h>
13#include <stdbool.h>
14
15#include "ab_ga_ertms_ctc_interface.h"
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define RBC_CTC_MAX_WIRE_MSG_SIZE 512U
23
27bool rbc_ctc_codec_encode_indication(const rbc_ctc_indication_t *ind,
28 uint8_t *out_buffer,
29 size_t buffer_size,
30 size_t *out_bytes_written);
31
35bool rbc_ctc_codec_decode_command(const uint8_t *in_buffer,
36 size_t buffer_size,
37 rbc_ctc_command_t *out_cmd);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* RBC_CTC_CODEC_H */