26#include "pico/stdio.h"
void init_app(app_ctx_t *app, const config_t *persistent_config)
Initialize application context from persistent/default configuration.
app_ctx_t * get_app_ctx(void)
Get access to the app context. This context is owned by main, app_init just takes hold of a pointer t...
#define RX_HDLC_SYNC_MAX_BUFFER_SIZE
Maximum raw RX bytes retained in the HDLC sync accumulator.
Generic HDLC frame buffer descriptor.
Accumulator and state for HDLC bit-offset synchronization.
Network configuration wrapper used by the W5500 driver.
One queued HDLC frame plus drain offset state.
UDP endpoint configuration.
Runtime V.24 configuration and TX holdoff state.
Global application context shared across modules.
UDP_FRAME_T tx_frame_buffer
UDP_FRAME_T rx_frame_buffer
HDLC_SYNC_ACCUMULATOR_T accumulator
payload_statistics_t stats
NETWORK_CONFIG_T net_config
UDP_CONFIG_T sender_config
UDP_CONFIG_T local_config
config_t persistent_config
UDP_CONFIG_T destination_config
HDLC_FRAME_T reconstructed_frame
Persistent configuration blob stored in flash.
Runtime pipeline statistics and counters.
uint64_t rx_fifo_stall_events
uint64_t sync_candidate_consume
uint64_t hdlc_decode_fail
uint64_t tx_queue_used_max
uint64_t resync_no_progress_count
uint64_t decode_fail_crc_mismatch
uint64_t sync_hardcap_drop_events
uint64_t udp_rx_throttle_enter
uint64_t tx_queue_drop_frames
uint64_t accumulator_pos_max
uint64_t hunt_idle_drop_bytes
uint64_t event_queue_drop_events
uint64_t decode_fail_unstuff_error
uint64_t udp_rx_throttle_skips
uint64_t log_queue_used_max
uint64_t hdlc_frame_ready
uint64_t serial_rx_drop_acc_full
uint64_t decode_fail_invalid_frame
uint64_t event_queue_used_max
uint64_t decode_fail_too_short
uint64_t sync_hardcap_drop_bytes
uint64_t resync_idle_timeout_count
uint64_t sync_lookahead_wait_syncing
uint64_t resync_hard_fail_count
uint64_t udp_tx_buffer_full_counts
uint64_t decode_fail_payload_too_long
uint64_t sync_lookahead_wait_synced
uint64_t udp_rx_buffer_full_counts
#define TX_FRAME_QUEUE_SIZE
Number of frame entries available in the TX queue ring buffer.