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

v22bis.h File Reference

Go to the source code of this file.

Defines

#define _SPANDSP_V22BIS_H_
#define V22BIS_EQUALIZER_LEN   7
#define V22BIS_EQUALIZER_MASK   15
#define V22BIS_TX_FILTER_STEPS   9
#define V22BIS_RX_FILTER_STEPS   37

Typedefs

typedef v22bis_state_s v22bis_state_t

Functions

 SPAN_DECLARE (int) v22bis_rx_restart(v22bis_state_t *s
 Release a V.8 context.
 SPAN_DECLARE (float) v22bis_rx_carrier_frequency(v22bis_state_t *s)
 Evaluate the final result of a Goertzel transform.
 SPAN_DECLARE (void) v22bis_set_qam_report_handler(v22bis_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (v22bis_state_t *) v22bis_init(v22bis_state_t *s
 Initialise a V.22bis modem context.
 SPAN_DECLARE (logging_state_t *) v22bis_get_logging_state(v22bis_state_t *s)
 Get a pointer to the logging context associated with a T.38 context.

Variables

const complexf_t v22bis_constellation [16]
int bit_rate
const int16_t amp []
const int16_t int len
complexf_t ** coeffs
qam_report_handler_t handler
qam_report_handler_t void * user_data
float power
int int guard
int int int caller
int int int get_bit_func_t get_bit
int int int get_bit_func_t
put_bit_func_t 
put_bit


Detailed Description


Typedef Documentation

typedef struct v22bis_state_s v22bis_state_t
 

V.22bis modem descriptor. This defines the working state for a single instance of a V.22bis modem.


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

Initialise a V.22bis modem context.

Initialise a V.22bis modem context. This must be called before the first use of the context, to initialise its contents.

Parameters:
s The modem context.
bit_rate The bit rate of the modem. Valid values are 1200 and 2400.
guard The guard tone option. 0 = none, 1 = 550Hz, 2 = 1800Hz.
caller TRUE if this is the calling modem.
get_bit The callback routine used to get the data to be transmitted.
put_bit The callback routine used to get the data to be transmitted.
user_data An opaque pointer, passed in calls to the get and put routines.
Returns:
A pointer to the modem context, or NULL if there was a problem.

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Set a handler routine to process QAM status reports

Parameters:
s The modem context.
handler The handler routine.
user_data An opaque pointer passed to the handler routine.

SPAN_DECLARE float   ) 
 

Evaluate the final result of a Goertzel transform.

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

SPAN_DECLARE int   ) 
 

Release a V.8 context.

Reinitialise an existing V.22bis modem receive context.

Parameters:
s The modem context.
bit_rate The bit rate of the modem. Valid values are 1200 and 2400.
Returns:
0 for OK, -1 for bad parameter


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