ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
app_ctx_t Struct Reference

Global application context shared across modules. More...

#include <app_context.h>

Collaboration diagram for app_ctx_t:

Data Fields

config_t persistent_config
 
bool config_valid
 
bool need_prompt
 
UDP_CONFIG_T local_config
 
UDP_CONFIG_T destination_config
 
UDP_CONFIG_T sender_config
 
NETWORK_CONFIG_T net_config
 
V24_CONFIG_T v24_config
 
uint8_t rx_frame_buffer_data [RX_BUF_SIZE]
 
UDP_FRAME_T rx_frame_buffer
 
uint8_t tx_frame_buffer_data [TX_BUF_SIZE]
 
UDP_FRAME_T tx_frame_buffer
 
uint8_t reconstructed_frame_buffer [RX_HDLC_SYNC_MAX_BUFFER_SIZE]
 
HDLC_FRAME_T reconstructed_frame
 
HDLC_SYNC_ACCUMULATOR_T accumulator
 
uint8_t tx_queue_buffer [TX_FRAME_QUEUE_SIZE *sizeof(TX_QUEUE_ENTRY_T)]
 
TX_QUEUE_T tx_queue
 
payload_statistics_t stats
 

Detailed Description

Global application context shared across modules.

Definition at line 97 of file app_context.h.

Field Documentation

◆ accumulator

◆ config_valid

bool app_ctx_t::config_valid

Definition at line 100 of file app_context.h.

Referenced by init_app(), and main().

◆ destination_config

UDP_CONFIG_T app_ctx_t::destination_config

◆ local_config

UDP_CONFIG_T app_ctx_t::local_config

◆ need_prompt

bool app_ctx_t::need_prompt

◆ net_config

NETWORK_CONFIG_T app_ctx_t::net_config

Definition at line 106 of file app_context.h.

Referenced by event_dispatch(), and init_app().

◆ persistent_config

config_t app_ctx_t::persistent_config

Definition at line 99 of file app_context.h.

Referenced by event_dispatch(), and init_app().

◆ reconstructed_frame

◆ reconstructed_frame_buffer

uint8_t app_ctx_t::reconstructed_frame_buffer[RX_HDLC_SYNC_MAX_BUFFER_SIZE]

Definition at line 115 of file app_context.h.

Referenced by init_app().

◆ rx_frame_buffer

UDP_FRAME_T app_ctx_t::rx_frame_buffer

Definition at line 111 of file app_context.h.

Referenced by event_dispatch(), init_app(), and poll_and_enqueue_udp_rx().

◆ rx_frame_buffer_data

uint8_t app_ctx_t::rx_frame_buffer_data[RX_BUF_SIZE]

Definition at line 110 of file app_context.h.

Referenced by init_app().

◆ sender_config

UDP_CONFIG_T app_ctx_t::sender_config

Definition at line 105 of file app_context.h.

Referenced by poll_and_enqueue_udp_rx().

◆ stats

◆ tx_frame_buffer

UDP_FRAME_T app_ctx_t::tx_frame_buffer

Definition at line 113 of file app_context.h.

Referenced by decode_hdlc_to_udp_tx(), event_dispatch(), and init_app().

◆ tx_frame_buffer_data

uint8_t app_ctx_t::tx_frame_buffer_data[TX_BUF_SIZE]

Definition at line 112 of file app_context.h.

Referenced by init_app().

◆ tx_queue

◆ tx_queue_buffer

uint8_t app_ctx_t::tx_queue_buffer[TX_FRAME_QUEUE_SIZE *sizeof(TX_QUEUE_ENTRY_T)]

Definition at line 119 of file app_context.h.

Referenced by main().

◆ v24_config


The documentation for this struct was generated from the following file: