RTE RBC 2oo2 Generic Application
0.1.0 build 308eda7
IL/CTC route and train logic for the RBC_GP reference RBC
Toggle main menu visibility
Loading...
Searching...
No Matches
gateway_c_ctc_handler.h
Go to the documentation of this file.
1
#ifndef RTE_EXAMPLE_GATEWAY_C_CTC_HANDLER_H
2
#define RTE_EXAMPLE_GATEWAY_C_CTC_HANDLER_H
3
9
10
#include "gateway_c_types.h"
11
12
typedef
struct
13
{
14
/* --- CTCSim-facing (one channel) --- */
15
rte_channel_service_t sim_channel;
16
17
/* --- A/B-facing (one dedicated relay channel per peer) --- */
18
rte_channel_service_t relay_channel[GATEWAY_C_PEER_COUNT];
19
uint8_t relay_consecutive_timeout;
/* peer A only */
20
rte_timestamp_ms_t relay_down_since_ms[GATEWAY_C_PEER_COUNT];
21
rte_timestamp_ms_t
send_down_since_ms
[GATEWAY_C_PEER_COUNT];
22
uint32_t a_seen_this_cycle;
23
unsigned
int
a_stale_cycles;
24
const
char
*last_known_tag;
25
gateway_c_dedup_t dedup;
26
}
gateway_c_ctc_handler_state_t
;
27
28
rte_status_t gateway_c_ctc_handler_init(gateway_c_context_t *ctx);
29
void
gateway_c_ctc_handler_execute(gateway_c_context_t *ctx, uint32_t cycle);
30
void
gateway_c_ctc_handler_shutdown(
void
);
31
bool
gateway_c_ctc_handler_check_link_down(rte_timestamp_ms_t threshold_ms, rte_timestamp_ms_t now_ms,
32
char
*out_which,
size_t
which_size);
33
34
#endif
/* RTE_EXAMPLE_GATEWAY_C_CTC_HANDLER_H */
gateway_c_ctc_handler_state_t
Definition
gateway_c_ctc_handler.h:13
gateway_c_ctc_handler_state_t::send_down_since_ms
rte_timestamp_ms_t send_down_since_ms[GATEWAY_C_PEER_COUNT]
Definition
gateway_c_ctc_handler.h:21
src
C
ctc
gateway_c_ctc_handler.h
Generated by
1.18.0