hdlc.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include "spandsp/telephony.h"
#include "spandsp/async.h"
#include "spandsp/crc.h"
#include "spandsp/bit_operations.h"
#include "spandsp/hdlc.h"
#include "spandsp/private/hdlc.h"

Functions

void hdlc_rx_put_bit (hdlc_rx_state_t *s, int new_bit)
void hdlc_rx_put_byte (hdlc_rx_state_t *s, int new_byte)
void hdlc_rx_put (hdlc_rx_state_t *s, const uint8_t buf[], int len)
void hdlc_rx_set_max_frame_len (hdlc_rx_state_t *s, size_t max_len)
void hdlc_rx_set_octet_counting_report_interval (hdlc_rx_state_t *s, int interval)
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)
void hdlc_rx_set_frame_handler (hdlc_rx_state_t *s, hdlc_frame_handler_t handler, void *user_data)
void hdlc_rx_set_status_handler (hdlc_rx_state_t *s, modem_rx_status_func_t handler, void *user_data)
int hdlc_rx_release (hdlc_rx_state_t *s)
int hdlc_rx_free (hdlc_rx_state_t *s)
int hdlc_rx_get_stats (hdlc_rx_state_t *s, hdlc_rx_stats_t *t)
int hdlc_tx_frame (hdlc_tx_state_t *s, const uint8_t *frame, size_t len)
int hdlc_tx_flags (hdlc_tx_state_t *s, int len)
int hdlc_tx_abort (hdlc_tx_state_t *s)
int hdlc_tx_corrupt_frame (hdlc_tx_state_t *s)
int hdlc_tx_get_byte (hdlc_tx_state_t *s)
int hdlc_tx_get_bit (hdlc_tx_state_t *s)
int hdlc_tx_get (hdlc_tx_state_t *s, uint8_t buf[], size_t max_len)
void hdlc_tx_set_max_frame_len (hdlc_tx_state_t *s, size_t max_len)
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)
int hdlc_tx_release (hdlc_tx_state_t *s)
int hdlc_tx_free (hdlc_tx_state_t *s)

Detailed Description


Generated by  doxygen 1.6.2