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

fsk.h File Reference

Go to the source code of this file.

Classes

struct  fsk_spec_t

Defines

#define _SPANDSP_FSK_H_
#define FSK_MAX_WINDOW_LEN   128

Typedefs

typedef fsk_tx_state_s fsk_tx_state_t
typedef fsk_rx_state_s fsk_rx_state_t

Enumerations

enum  {
  FSK_V21CH1 = 0, FSK_V21CH2, FSK_V23CH1, FSK_V23CH2,
  FSK_BELL103CH1, FSK_BELL103CH2, FSK_BELL202, FSK_WEITBRECHT
}

Functions

 SPAN_DECLARE (fsk_tx_state_t *) fsk_tx_init(fsk_tx_state_t *s
 Initialise an FSK modem transmit context.
 SPAN_DECLARE (int) fsk_tx_release(fsk_tx_state_t *s)
 Generate a block of FSK modem audio samples.
 SPAN_DECLARE (void) fsk_tx_power(fsk_tx_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (float) fsk_rx_signal_power(fsk_rx_state_t *s)
 Find the frequency, in Hz, equivalent to a phase rate.
 SPAN_DECLARE (fsk_rx_state_t *) fsk_rx_init(fsk_rx_state_t *s
 Initialise an FSK modem receive context.

Variables

SPAN_DECLARE_DATA const fsk_spec_t preset_fsk_specs []
const fsk_spec_tspec
const fsk_spec_t get_bit_func_t get_bit
const fsk_spec_t get_bit_func_t
void * 
user_data
float power
modem_tx_status_func_t handler
int16_t amp []
int16_t int len
float cutoff
const fsk_spec_t int sync_mode
const fsk_spec_t int put_bit_func_t put_bit


Detailed Description


Typedef Documentation

typedef struct fsk_rx_state_s fsk_rx_state_t
 

FSK modem receive descriptor. This defines the state of a single working instance of an FSK modem receiver.

typedef struct fsk_tx_state_s fsk_tx_state_t
 

FSK modem transmit descriptor. This defines the state of a single working instance of an FSK modem transmitter.


Function Documentation

SPAN_DECLARE fsk_rx_state_t  ) 
 

Initialise an FSK modem receive context.

Initialise an FSK modem receive context.

Parameters:
s The modem context.
spec The specification of the modem tones and rate.
sync_mode TRUE for synchronous modem. FALSE for asynchronous mode.
put_bit The callback routine used to put the received data.
user_data An opaque pointer.
Returns:
A pointer to the modem context, or NULL if there was a problem.

SPAN_DECLARE float   ) 
 

Find the frequency, in Hz, equivalent to a phase rate.

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

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Adjust an FSK modem transmit context's power output.

Parameters:
s The modem context.
power The power level, in dBm0

SPAN_DECLARE int32_t   ) 
 

Generate a block of FSK modem audio samples.

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

Initialise an FSK modem transmit context.

Initialise an FSK modem transmit context.

Parameters:
s The modem context.
spec The specification of the modem tones and rate.
get_bit The callback routine used to get the data to be transmitted.
user_data An opaque pointer.
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