hdlc_rx_state_t Struct Reference

#include <hdlc.h>

List of all members.

Public Attributes

int crc_bytes
hdlc_frame_handler_t frame_handler
 The callback routine called to process each good received frame.
void * user_data
 An opaque parameter passed to the callback routine.
int report_bad_frames
int framing_ok_threshold
int flags_seen
int rx_state
 0 = sync hunt, !0 = receiving
unsigned int bit_buf
unsigned int byte_in_progress
int num_bits
uint8_t buffer [HDLC_MAXFRAME_LEN+2]
 Buffer for a frame in progress.
int len
 Length of a frame in progress.
unsigned long int rx_bytes
 The number of bytes of good frames received (CRC not included).
unsigned long int rx_frames
 The number of good frames received.
unsigned long int rx_crc_errors
 The number of frames with CRC errors received.
unsigned long int rx_length_errors
 The number of too short and too long frames received.
unsigned long int rx_aborts
 The number of HDLC aborts received.


Detailed Description

HDLC receive descriptor. This contains all the state information for an HDLC receiver.


Member Data Documentation

int hdlc_rx_state_t::crc_bytes

2 for CRC-16, 4 for CRC-32


The documentation for this struct was generated from the following file:
Generated on Fri Nov 10 09:40:25 2006 for libspandsp by  doxygen 1.5.1