|
Classes |
struct | hdlc_rx_state_t |
struct | hdlc_rx_stats_t |
struct | hdlc_tx_state_t |
Defines |
#define | _SPANDSP_HDLC_H_ |
#define | HDLC_MAXFRAME_LEN 400 |
Typedefs |
typedef void(* | hdlc_frame_handler_t )(void *user_data, const uint8_t *pkt, int len, int ok) |
typedef void(* | hdlc_underflow_handler_t )(void *user_data) |
Functions |
hdlc_rx_state_t * | hdlc_rx_init (hdlc_rx_state_t *s, int crc32, int report_bad_frames, int framing_ok_threshold, hdlc_frame_handler_t handler, void *user_data) |
| Initialise an HDLC receiver context.
|
void | hdlc_rx_set_max_frame_len (hdlc_rx_state_t *s, size_t max_len) |
| Set the maximum frame length for an HDLC receiver context.
|
void | hdlc_rx_set_octet_counting_report_interval (hdlc_rx_state_t *s, int interval) |
| Set the octet counting report interval.
|
int | hdlc_rx_get_stats (hdlc_rx_state_t *s, hdlc_rx_stats_t *t) |
| Get the current receive statistics.
|
void | hdlc_rx_put_bit (hdlc_rx_state_t *s, int new_bit) |
| Put a single bit of data to an HDLC receiver.
|
void | hdlc_rx_put_byte (hdlc_rx_state_t *s, int new_byte) |
| Put a byte of data to an HDLC receiver.
|
void | hdlc_rx_put (hdlc_rx_state_t *s, const uint8_t buf[], int len) |
| Put a series of bytes of data to an HDLC receiver.
|
hdlc_tx_state_t * | hdlc_tx_init (hdlc_tx_state_t *s, int crc32, int inter_frame_flags, int progressive, hdlc_underflow_handler_t handler, void *user_data) |
| Initialise an HDLC transmitter context.
|
void | hdlc_tx_set_max_frame_len (hdlc_tx_state_t *s, size_t max_len) |
| Set the maximum frame length for an HDLC transmitter context.
|
int | hdlc_tx_frame (hdlc_tx_state_t *s, const uint8_t *frame, size_t len) |
| Transmit a frame.
|
int | hdlc_tx_corrupt_frame (hdlc_tx_state_t *s) |
| Corrupt the frame currently being transmitted, by giving it the wrong CRC.
|
int | hdlc_tx_flags (hdlc_tx_state_t *s, int len) |
| Transmit a specified quantity of flag octets, typically as a preamble.
|
int | hdlc_tx_abort (hdlc_tx_state_t *s) |
| Send an abort.
|
int | hdlc_tx_get_bit (hdlc_tx_state_t *s) |
| Get the next bit for transmission.
|
int | hdlc_tx_get_byte (hdlc_tx_state_t *s) |
| Get the next byte for transmission.
|
int | hdlc_tx_get (hdlc_tx_state_t *s, uint8_t buf[], size_t max_len) |
| Get the next sequence of bytes for transmission.
|