t31_tests.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <audiofile.h>
#include <tiffio.h>
#include "spandsp.h"
#include "spandsp/t30_fcf.h"

Defines

#define _GNU_SOURCE
#define OUTPUT_FILE_NAME_T30   "t31_tests_t30.wav"
#define OUTPUT_FILE_NAME_T31   "t31_tests_t31.wav"
#define DLE   0x10
#define ETX   0x03
#define SUB   0x1A
#define SAMPLES_PER_CHUNK   160

Functions

int t31_send (t31_state_t *s, char *t)
int t31_expect (t31_state_t *s, char *t)
int t31_send_hdlc (t31_state_t *s, uint8_t *t, int len)
int general_test (t31_state_t *s)
int fax_send_test (t31_state_t *s)
int fax_receive_test (t31_state_t *s)
void phase_b_handler (t30_state_t *s, void *user_data, int result)
void phase_d_handler (t30_state_t *s, void *user_data, int result)
void phase_e_handler (t30_state_t *s, void *user_data, int result)
int at_tx_handler (t31_state_t *s, void *user_data, const uint8_t *buf, int len)
int main (int argc, char *argv[])

Variables

int countdown = 0

Detailed Description


Generated on Fri Nov 10 09:40:25 2006 for libspandsp by  doxygen 1.5.1