SafeAPI RBC 2oo2 Generic Application
IL/CTC route and train logic for the safeAPIRBC2oo2 reference RBC
Loading...
Searching...
No Matches
ab_ga_ertms_il_codec.h
1
8
9#ifndef AB_GA_ERTMS_IL_CODEC_H
10#define AB_GA_ERTMS_IL_CODEC_H
11
12#include <stddef.h>
13#include <stdint.h>
14#include <stdbool.h>
15
16#include "ab_ga_ertms_il_interface.h"
17
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#define RBC_IL_MAX_WIRE_MSG_SIZE 512U
24
28bool rbc_il_codec_encode_outbound(const rbc_il_outbound_msg_t *msg,
29 uint8_t *out_buffer,
30 size_t buffer_size,
31 size_t *out_bytes_written);
32
36bool rbc_il_codec_decode_inbound(const uint8_t *in_buffer,
37 size_t buffer_size,
38 rbc_il_inbound_msg_t *out_msg);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* RBC_IL_CODEC_H */