|
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 |
| TRUE if bad frames are to be reported.
|
int | framing_ok_threshold |
| The number of consecutive flags which must be seen before framing is declared OK.
|
int | framing_ok_announced |
| TRUE if framing OK has been announced.
|
int | flags_seen |
| Number of consecutive flags seen so far.
|
unsigned int | raw_bit_stream |
| The raw (stuffed) bit stream buffer.
|
unsigned int | byte_in_progress |
| The destuffed bit stream buffer.
|
int | num_bits |
| The current number of bits in byte_in_progress.
|
uint8_t | buffer [HDLC_MAXFRAME_LEN+4] |
| 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.
|