|
spandsp 3.0.0
|
#include <hdlc.h>
Public Attributes | |
| int | crc_bytes |
| hdlc_underflow_handler_t | underflow_handler |
| The callback routine called to indicate transmit underflow. | |
| void * | user_data |
| An opaque parameter passed to the callback routine. | |
| int | inter_frame_flags |
| The minimum flag octets to insert between frames. | |
| bool | progressive |
| True if frame creation works in progressive mode. | |
| size_t | max_frame_len |
| Maximum permitted frame length. | |
| uint32_t | octets_in_progress |
| The stuffed bit stream being created. | |
| int | num_bits |
| The number of bits currently in octets_in_progress. | |
| int | idle_octet |
| The currently rotated state of the flag octet. | |
| int | flag_octets |
| The number of flag octets to send for a timed burst of flags. | |
| int | abort_octets |
| The number of abort octets to send for a timed burst of aborts. | |
| bool | report_flag_underflow |
| True if the next underflow of timed flag octets should be reported. | |
| uint8_t | buffer [HDLC_MAXFRAME_LEN+4] |
| The current message being transmitted, with its CRC attached. | |
| size_t | len |
| The length of the message in the buffer. | |
| size_t | pos |
| The current send position within the buffer. | |
| uint32_t | crc |
| The running CRC, as data fills the frame buffer. | |
| int | byte |
| The current byte being broken into bits for transmission. | |
| int | bits |
| The number of bits remaining in byte. | |
| bool | tx_end |
| True if transmission should end on buffer underflow . | |
HDLC transmit descriptor. This contains all the state information for an HDLC transmitter.
| int hdlc_tx_state_s::abort_octets |
The number of abort octets to send for a timed burst of aborts.
Referenced by hdlc_tx_abort(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| int hdlc_tx_state_s::bits |
The number of bits remaining in byte.
Referenced by hdlc_tx_get_bit(), and hdlc_tx_restart().
| uint8_t hdlc_tx_state_s::buffer[HDLC_MAXFRAME_LEN+4] |
The current message being transmitted, with its CRC attached.
Referenced by hdlc_tx_corrupt_frame(), hdlc_tx_frame(), and hdlc_tx_get_byte().
| int hdlc_tx_state_s::byte |
The current byte being broken into bits for transmission.
Referenced by hdlc_tx_get_bit(), and hdlc_tx_restart().
| uint32_t hdlc_tx_state_s::crc |
The running CRC, as data fills the frame buffer.
Referenced by hdlc_tx_corrupt_frame(), hdlc_tx_frame(), hdlc_tx_get_byte(), hdlc_tx_init(), and hdlc_tx_restart().
| int hdlc_tx_state_s::crc_bytes |
2 for CRC-16, 4 for CRC-32
Referenced by hdlc_tx_frame(), hdlc_tx_get_byte(), hdlc_tx_init(), and hdlc_tx_restart().
| int hdlc_tx_state_s::flag_octets |
The number of flag octets to send for a timed burst of flags.
Referenced by hdlc_tx_abort(), hdlc_tx_flags(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| int hdlc_tx_state_s::idle_octet |
The currently rotated state of the flag octet.
Referenced by hdlc_tx_get_byte(), hdlc_tx_init(), and hdlc_tx_restart().
| int hdlc_tx_state_s::inter_frame_flags |
The minimum flag octets to insert between frames.
Referenced by hdlc_tx_get_byte(), and hdlc_tx_init().
| size_t hdlc_tx_state_s::len |
The length of the message in the buffer.
Referenced by hdlc_tx_corrupt_frame(), hdlc_tx_frame(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| size_t hdlc_tx_state_s::max_frame_len |
Maximum permitted frame length.
Referenced by hdlc_tx_frame(), hdlc_tx_init(), and hdlc_tx_set_max_frame_len().
| int hdlc_tx_state_s::num_bits |
The number of bits currently in octets_in_progress.
Referenced by hdlc_tx_get_byte(), and hdlc_tx_restart().
| uint32_t hdlc_tx_state_s::octets_in_progress |
The stuffed bit stream being created.
Referenced by hdlc_tx_get_byte(), and hdlc_tx_restart().
| size_t hdlc_tx_state_s::pos |
The current send position within the buffer.
Referenced by hdlc_tx_flags(), hdlc_tx_frame(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| bool hdlc_tx_state_s::progressive |
True if frame creation works in progressive mode.
Referenced by hdlc_tx_frame(), and hdlc_tx_init().
| bool hdlc_tx_state_s::report_flag_underflow |
True if the next underflow of timed flag octets should be reported.
Referenced by hdlc_tx_flags(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| bool hdlc_tx_state_s::tx_end |
True if transmission should end on buffer underflow .
Referenced by hdlc_tx_flags(), hdlc_tx_frame(), hdlc_tx_get_byte(), and hdlc_tx_restart().
| hdlc_underflow_handler_t hdlc_tx_state_s::underflow_handler |
The callback routine called to indicate transmit underflow.
Referenced by hdlc_tx_get_byte(), and hdlc_tx_init().
| void* hdlc_tx_state_s::user_data |
An opaque parameter passed to the callback routine.
Referenced by hdlc_tx_get_byte(), and hdlc_tx_init().