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

Accumulator and state for HDLC bit-offset synchronization. More...

#include <hdlc_sync.h>

Data Fields

uint8_t buffer [RX_HDLC_SYNC_MAX_BUFFER_SIZE]
 
size_t position
 
size_t processed
 
size_t candidate_start
 
size_t candidate_end
 
bool candidate_valid
 
uint8_t bit_offset
 
bool align_shift_right
 
HDLC_SYNC_STATE_T state
 
uint8_t sync_byte
 
uint32_t lookahead_wait_syncing
 
uint32_t lookahead_wait_synced
 
uint32_t frame_ready_count
 
uint32_t consume_count
 
uint32_t hardcap_drop_events
 
uint32_t hardcap_drop_bytes
 

Detailed Description

Accumulator and state for HDLC bit-offset synchronization.

Definition at line 53 of file hdlc_sync.h.

Field Documentation

◆ align_shift_right

bool HDLC_SYNC_ACCUMULATOR_T::align_shift_right

◆ bit_offset

uint8_t HDLC_SYNC_ACCUMULATOR_T::bit_offset

◆ buffer

uint8_t HDLC_SYNC_ACCUMULATOR_T::buffer[RX_HDLC_SYNC_MAX_BUFFER_SIZE]

Raw incoming byte buffer.

Definition at line 56 of file hdlc_sync.h.

Referenced by hdlc_sync_acc_process_byte(), hdlc_sync_drop_prefix(), and hdlc_sync_get_aligned_byte().

◆ candidate_end

size_t HDLC_SYNC_ACCUMULATOR_T::candidate_end

◆ candidate_start

size_t HDLC_SYNC_ACCUMULATOR_T::candidate_start

◆ candidate_valid

bool HDLC_SYNC_ACCUMULATOR_T::candidate_valid

◆ consume_count

uint32_t HDLC_SYNC_ACCUMULATOR_T::consume_count

◆ frame_ready_count

uint32_t HDLC_SYNC_ACCUMULATOR_T::frame_ready_count

Definition at line 76 of file hdlc_sync.h.

Referenced by hdlc_sync_acc_init(), and hdlc_sync_step_synced().

◆ hardcap_drop_bytes

uint32_t HDLC_SYNC_ACCUMULATOR_T::hardcap_drop_bytes

◆ hardcap_drop_events

uint32_t HDLC_SYNC_ACCUMULATOR_T::hardcap_drop_events

◆ lookahead_wait_synced

uint32_t HDLC_SYNC_ACCUMULATOR_T::lookahead_wait_synced

Definition at line 75 of file hdlc_sync.h.

Referenced by hdlc_sync_acc_init(), hdlc_sync_step_synced(), and update_statistics().

◆ lookahead_wait_syncing

uint32_t HDLC_SYNC_ACCUMULATOR_T::lookahead_wait_syncing

Definition at line 74 of file hdlc_sync.h.

Referenced by hdlc_sync_acc_init(), hdlc_sync_step_syncing(), and update_statistics().

◆ position

◆ processed

size_t HDLC_SYNC_ACCUMULATOR_T::processed

◆ state

◆ sync_byte


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