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

v17rx.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/logging.h"
#include "spandsp/complex.h"
#include "spandsp/vector_float.h"
#include "spandsp/complex_vector_float.h"
#include "spandsp/vector_int.h"
#include "spandsp/complex_vector_int.h"
#include "spandsp/async.h"
#include "spandsp/power_meter.h"
#include "spandsp/arctan2.h"
#include "spandsp/dds.h"
#include "spandsp/complex_filters.h"
#include "spandsp/v29rx.h"
#include "spandsp/v17tx.h"
#include "spandsp/v17rx.h"
#include "spandsp/private/logging.h"
#include "spandsp/private/v17rx.h"
#include "v17tx_constellation_maps.h"
#include "v17rx_constellation_maps.h"
#include "v17rx_floating_rrc.h"

Defines

#define CARRIER_NOMINAL_FREQ   1800.0f
#define BAUD_RATE   2400
#define EQUALIZER_DELTA   0.21f
#define EQUALIZER_SLOW_ADAPT_RATIO   0.1f
#define V17_TRAINING_SEG_1_LEN   256
#define V17_TRAINING_SEG_2_LEN   2976
#define V17_TRAINING_SHORT_SEG_2_LEN   38
#define V17_TRAINING_SEG_3_LEN   64
#define V17_TRAINING_SEG_4A_LEN   15
#define V17_TRAINING_SEG_4_LEN   48
#define V17_BRIDGE_WORD   0x8880
#define V17_EQUALIZER_LEN   (V17_EQUALIZER_PRE_LEN + 1 + V17_EQUALIZER_POST_LEN)
#define SYNC_LOW_BAND_EDGE_COEFF_0   1.764193f
#define SYNC_LOW_BAND_EDGE_COEFF_1   -0.980100f
#define SYNC_HIGH_BAND_EDGE_COEFF_0   -1.400072f
#define SYNC_HIGH_BAND_EDGE_COEFF_1   -0.980100f
#define SYNC_CROSS_CORR_COEFF_A   -0.932131f
#define SYNC_CROSS_CORR_COEFF_B   0.700036f
#define SYNC_CROSS_CORR_COEFF_C   -0.449451f

Enumerations

enum  {
  TRAINING_STAGE_NORMAL_OPERATION = 0, TRAINING_STAGE_SYMBOL_ACQUISITION, TRAINING_STAGE_LOG_PHASE, TRAINING_STAGE_SHORT_WAIT_FOR_CDBA,
  TRAINING_STAGE_WAIT_FOR_CDBA, TRAINING_STAGE_COARSE_TRAIN_ON_CDBA, TRAINING_STAGE_FINE_TRAIN_ON_CDBA, TRAINING_STAGE_SHORT_TRAIN_ON_CDBA_AND_TEST,
  TRAINING_STAGE_TRAIN_ON_CDBA_AND_TEST, TRAINING_STAGE_BRIDGE, TRAINING_STAGE_TCM_WINDUP, TRAINING_STAGE_TEST_ONES,
  TRAINING_STAGE_PARKED
}

Functions

 SPAN_DECLARE (float)
 Evaluate the final result of a Goertzel transform.
 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 (v17_rx_state_t *)

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

Evaluate the final result of a Goertzel transform.

Parameters:
phase_rate The phase rate.
Returns:
The equivalent frequency, in Hz.


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