Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

v42.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/async.h"
#include "spandsp/hdlc.h"
#include "spandsp/schedule.h"
#include "spandsp/queue.h"
#include "spandsp/v42.h"
#include "spandsp/private/logging.h"
#include "spandsp/private/schedule.h"
#include "spandsp/private/hdlc.h"
#include "spandsp/private/v42.h"

Defines

#define LAPM_FRAMETYPE_MASK   0x03
#define LAPM_FRAMETYPE_I   0x00
#define LAPM_FRAMETYPE_I_ALT   0x02
#define LAPM_FRAMETYPE_S   0x01
#define LAPM_FRAMETYPE_U   0x03
#define T_WAIT_MIN   2000
#define T_WAIT_MAX   10000
#define T_400   750000
#define T_401   1000000
#define T_402   1000000
#define T_403   10000000
#define N_400   3
#define N_401   128
#define LAPM_DLCI_DTE_TO_DTE   0
#define LAPM_DLCI_LAYER2_MANAGEMENT   63

Functions

 SPAN_DECLARE (SPAN_DECLARE() lapm_restart(lapm_state_t *s) void)
 SPAN_DECLARE (const char *)
 Get the short text name of an encoding format.
 SPAN_DECLARE (int)
 Release a V.8 context.
 SPAN_DECLARE (void)
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE_NONSTD (void)
 SPAN_DECLARE (v42_state_t *)

Detailed Description


Function Documentation

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Log the list of supported modulations.

Parameters:
s The V.8 context.
modulation_schemes The list of supported modulations.

SPAN_DECLARE int   ) 
 

Release a V.8 context.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE const char *   ) 
 

Get the short text name of an encoding format.

Get the transmitted identifier associated with a T.30 context.

Parameters:
s The T.30 context.
id A pointer to the identifier.
Returns:
0 for OK, else -1.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1