fax_modems.h File Reference

Go to the source code of this file.

Typedefs

typedef fax_modems_state_s fax_modems_state_t

Enumerations

enum  {
  FAX_MODEM_NONE = -1, FAX_MODEM_FLUSH = 0, FAX_MODEM_SILENCE_TX, FAX_MODEM_SILENCE_RX,
  FAX_MODEM_CED_TONE, FAX_MODEM_CNG_TONE, FAX_MODEM_NOCNG_TONE, FAX_MODEM_V21_TX,
  FAX_MODEM_V17_TX, FAX_MODEM_V27TER_TX, FAX_MODEM_V29_TX, FAX_MODEM_V21_RX,
  FAX_MODEM_V17_RX, FAX_MODEM_V27TER_RX, FAX_MODEM_V29_RX
}

Functions

 SPAN_DECLARE_NONSTD (int) fax_modems_v17_v21_rx(void *user_data
 Get the next bit of data from a T.38 rate adapting non-ECM buffer context.
void fax_modems_start_rx_modem (fax_modems_state_t *s, int which)
void fax_modems_set_tep_mode (fax_modems_state_t *s, int use_tep)
int fax_modems_restart (fax_modems_state_t *s)
fax_modems_state_tfax_modems_init (fax_modems_state_t *s, int use_tep, hdlc_frame_handler_t hdlc_accept, hdlc_underflow_handler_t hdlc_tx_underflow, put_bit_func_t non_ecm_put_bit, get_bit_func_t non_ecm_get_bit, tone_report_func_t tone_callback, void *user_data)
int fax_modems_release (fax_modems_state_t *s)
int fax_modems_free (fax_modems_state_t *s)

Variables

const int16_t amp []
const int16_t int len
const int16_t amp []
const int16_t int len
const int16_t amp []
const int16_t int len
int len
int len
int len


Detailed Description


Typedef Documentation

typedef struct fax_modems_state_s fax_modems_state_t

The set of modems needed for FAX, plus the auxilliary stuff, like tone generation.


Function Documentation

SPAN_DECLARE_NONSTD ( int   ) 

Get the next bit of data from a T.38 rate adapting non-ECM buffer context.

Apply T.30 receive processing to a block of audio samples.

Parameters:
s The FAX context.
amp The audio sample buffer.
len The number of samples in the buffer.
Returns:
The number of samples unprocessed. This should only be non-zero if the software has reached the end of the FAX call.


Generated on Fri Apr 15 16:14:39 2011 for spandsp by  doxygen 1.4.7