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

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 (int) fax_modems_v17_v21_rx(void *user_data
 Release a V.8 context.
 SPAN_DECLARE (void) fax_modems_set_tep_mode(fax_modems_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (fax_modems_state_t *) fax_modems_init(fax_modems_state_t *s

Variables

const int16_t amp []
const int16_t int len
int use_tep
int hdlc_frame_handler_t hdlc_accept
int hdlc_frame_handler_t hdlc_underflow_handler_t hdlc_tx_underflow
int hdlc_frame_handler_t hdlc_underflow_handler_t
put_bit_func_t 
non_ecm_put_bit
int hdlc_frame_handler_t hdlc_underflow_handler_t
put_bit_func_t get_bit_func_t 
non_ecm_get_bit
int hdlc_frame_handler_t hdlc_underflow_handler_t
put_bit_func_t get_bit_func_t
tone_report_func_t 
tone_callback
int hdlc_frame_handler_t hdlc_underflow_handler_t
put_bit_func_t get_bit_func_t
tone_report_func_t void * 
user_data


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

Cleanup a T.30 context if the call terminates.

Select whether silent audio will be sent when FAX transmit is idle.

Parameters:
s The FAX context.
transmit_on_idle TRUE if silent audio should be output when the FAX transmitter is idle. FALSE to transmit zero length audio when the FAX transmitter is idle. The default behaviour is FALSE.

SPAN_DECLARE int   ) 
 

Release a V.8 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 Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1