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

v17rx.h File Reference

Go to the source code of this file.

Defines

#define _SPANDSP_V17RX_H_
#define V17_EQUALIZER_PRE_LEN   8
#define V17_EQUALIZER_POST_LEN   8
#define V17_RX_FILTER_STEPS   27
#define V17_TRELLIS_STORAGE_DEPTH   16
#define V17_TRELLIS_LOOKBACK_DEPTH   16

Typedefs

typedef v17_rx_state_s v17_rx_state_t

Functions

 SPAN_DECLARE (v17_rx_state_t *) v17_rx_init(v17_rx_state_t *s
 Initialise a V.17 modem receive context.
 SPAN_DECLARE (int) v17_rx_restart(v17_rx_state_t *s
 Release a V.8 context.
 SPAN_DECLARE (logging_state_t *) v17_rx_get_logging_state(v17_rx_state_t *s)
 Get a pointer to the logging context associated with a T.38 context.
 SPAN_DECLARE (void) v17_rx_set_put_bit(v17_rx_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (float) v17_rx_carrier_frequency(v17_rx_state_t *s)
 Evaluate the final result of a Goertzel transform.

Variables

int bit_rate
int put_bit_func_t put_bit
int put_bit_func_t void * user_data
int int short_train
modem_rx_status_func_t handler
const int16_t amp []
const int16_t int len
complexf_t ** coeffs
float cutoff


Detailed Description


Typedef Documentation

typedef struct v17_rx_state_s v17_rx_state_t
 

V.17 modem receive side descriptor. This defines the working state for a single instance of a V.17 modem receiver.


Function Documentation

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

Cleanup a T.30 context if the call terminates.

Change the put_bit function associated with a V.17 modem receive context.

Parameters:
s The modem context.
put_bit The callback routine used to handle received bits.
user_data An opaque pointer.

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.

Reinitialise an existing V.17 modem receive context.

Parameters:
s The modem context.
bit_rate The bit rate of the modem. Valid values are 7200, 9600, 12000 and 14400.
short_train TRUE if a short training sequence is expected.
Returns:
0 for OK, -1 for bad parameter

SPAN_DECLARE v17_rx_state_t  ) 
 

Initialise a V.17 modem receive context.

Initialise a V.17 modem receive context.

Parameters:
s The modem context.
bit_rate The bit rate of the modem. Valid values are 7200, 9600, 12000 and 14400.
put_bit The callback routine used to put the received data.
user_data An opaque pointer passed to the put_bit routine.
Returns:
A pointer to the modem context, or NULL if there was a problem.


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