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_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
27
extern
"C"
{
28
#endif
29
38
void
ab_gp_channel_stage_reset
(
ab_gp_channel_handle_t
handle);
39
49
rte_status_t
ab_gp_channel_stage_peer
(
ab_gp_channel_handle_t
handle,
const
uint8_t *bytes,
size_t
size);
50
56
rte_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
64
rte_status_t
ab_gp_channel_stage_relay
(
ab_gp_channel_handle_t
handle,
rte_example_relay_kind_t
kind,
65
uint8_t index,
const
uint8_t *bytes,
size_t
size);
66
79
rte_status_t
ab_gp_channel_commit_pending_sends
(
ab_gp_channel_handle_t
handle);
80
89
void
ab_gp_channel_discard_pending_sends
(
ab_gp_channel_handle_t
handle);
90
91
#ifdef __cplusplus
92
}
93
#endif
94
95
#endif
/* RTE_EXAMPLE_AB_GP_CHANNEL_STAGE_H */
ab_gp_channel.h
ab_gp_channel_handle_t
struct ab_gp_channel_context_s * ab_gp_channel_handle_t
Opaque handle over this component's own static per-process context.
Definition
ab_gp_channel.h:18
ab_gp_channel_stage_peer
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.
Definition
ab_gp_channel_stage.c:37
ab_gp_channel_stage_reset
void ab_gp_channel_stage_reset(ab_gp_channel_handle_t handle)
Clears this cycle's pending-send queue.
Definition
ab_gp_channel_stage.c:26
ab_gp_channel_discard_pending_sends
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.
Definition
ab_gp_channel_stage.c:124
ab_gp_channel_stage_crosscompare
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.
Definition
ab_gp_channel_stage.c:48
ab_gp_channel_commit_pending_sends
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()),...
Definition
ab_gp_channel_stage.c:76
ab_gp_channel_stage_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.
Definition
ab_gp_channel_stage.c:64
ab_gp_channel_types.h
Modular type definitions for AB channel components (Com, Train, DB, Redundancy).
rte_example_relay_kind_t
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
src
application
AB
GP
com
ab_gp_channel_stage.h
Generated by
1.18.0