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

v8.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/queue.h"
#include "spandsp/async.h"
#include "spandsp/complex.h"
#include "spandsp/dds.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/power_meter.h"
#include "spandsp/fsk.h"
#include "spandsp/modem_connect_tones.h"
#include "spandsp/v8.h"
#include "spandsp/private/logging.h"
#include "spandsp/private/fsk.h"
#include "spandsp/private/modem_connect_tones.h"
#include "spandsp/private/v8.h"

Defines

#define ms_to_samples(t)   (((t)*SAMPLE_RATE)/1000)

Enumerations

enum  {
  V8_WAIT_1S, V8_CI, V8_CI_ON, V8_CI_OFF,
  V8_HEARD_ANSAM, V8_CM_ON, V8_CJ_ON, V8_CM_WAIT,
  V8_SIGC, V8_WAIT_200MS, V8_JM_ON, V8_SIGA,
  V8_PARKED
}
enum  { V8_SYNC_UNKNOWN = 0, V8_SYNC_CI, V8_SYNC_CM_JM, V8_SYNC_V92 }

Functions

 SPAN_DECLARE (const char *)
 Get the short text name of an encoding format.
 SPAN_DECLARE (void)
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (int)
 Release a V.8 context.
 SPAN_DECLARE (logging_state_t *)
 Get a pointer to the logging context associated with a T.38 context.
 SPAN_DECLARE (v8_state_t *)

Variables

enum { ... }  v8_states_e
enum { ... }  v8_sync_types_e

Detailed Description


Function Documentation

SPAN_DECLARE logging_state_t  ) 
 

Get a pointer to the logging context associated with a T.38 context.

Get a pointer to the logging context associated with a FAX context.

Parameters:
s The FAX context.
Returns:
A pointer to the logging context, or NULL.

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 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 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