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_channel_stage.h
Go to the documentation of this file.
1#ifndef RTE_EXAMPLE_AB_GP_CHANNEL_STAGE_H
2#define RTE_EXAMPLE_AB_GP_CHANNEL_STAGE_H
3
22
23#include "ab_gp_channel.h"
24#include "ab_gp_channel_types.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
39
49rte_status_t ab_gp_channel_stage_peer(ab_gp_channel_handle_t handle, const uint8_t *bytes, size_t size);
50
56rte_status_t ab_gp_channel_stage_crosscompare(ab_gp_channel_handle_t handle, uint8_t kind,
57 const uint8_t *payload, size_t size);
58
65 uint8_t index, const uint8_t *bytes, size_t size);
66
80
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif /* RTE_EXAMPLE_AB_GP_CHANNEL_STAGE_H */
struct ab_gp_channel_context_s * ab_gp_channel_handle_t
Opaque handle over this component's own static per-process context.
rte_status_t ab_gp_channel_stage_peer(ab_gp_channel_handle_t handle, const uint8_t *bytes, size_t size)
Queues a peer-link send for this cycle - does not transmit yet.
void ab_gp_channel_stage_reset(ab_gp_channel_handle_t handle)
Clears this cycle's pending-send queue.
void ab_gp_channel_discard_pending_sends(ab_gp_channel_handle_t handle)
Discards every send queued this cycle without transmitting it, then clears the queue.
rte_status_t ab_gp_channel_stage_crosscompare(ab_gp_channel_handle_t handle, uint8_t kind, const uint8_t *payload, size_t size)
Queues a crosscompare-link send for this cycle - does not transmit yet.
rte_status_t ab_gp_channel_commit_pending_sends(ab_gp_channel_handle_t handle)
Transmits every send queued this cycle (through the real ab_gp_channel_send_peer()/_send_relay()),...
rte_status_t ab_gp_channel_stage_relay(ab_gp_channel_handle_t handle, rte_example_relay_kind_t kind, uint8_t index, const uint8_t *bytes, size_t size)
Queues a relay-link send for this cycle - does not transmit yet.
Modular type definitions for AB channel components (Com, Train, DB, Redundancy).
rte_example_relay_kind_t
Which client type a C<->A/C<->B relay link/port belongs to - this project's own dedicated-channel-per...
Definition site_config.h:39