modem_connect_tones.h File Reference

Go to the source code of this file.

Classes

struct  modem_connect_tones_tx_state_t
struct  modem_connect_tones_rx_state_t

Enumerations

enum  { MODEM_CONNECT_TONES_FAX_CNG, MODEM_CONNECT_TONES_FAX_CED, MODEM_CONNECT_TONES_EC_DISABLE, MODEM_CONNECT_TONES_EC_DISABLE_MOD }

Functions

modem_connect_tones_tx_state_tmodem_connect_tones_tx_init (modem_connect_tones_tx_state_t *s, int tone_type)
 Initialse an instance of the echo canceller disable tone generator.
int modem_connect_tones_tx (modem_connect_tones_tx_state_t *s, int16_t amp[], int len)
 Generate a block of echo canceller disable tone samples.
int modem_connect_tones_rx (modem_connect_tones_rx_state_t *s, const int16_t amp[], int len)
 Process a block of samples through an instance of the modem_connect tones detector.
int modem_connect_tones_rx_get (modem_connect_tones_rx_state_t *s)
 Test if a modem_connect tone has been detected.
modem_connect_tones_rx_state_tmodem_connect_tones_rx_init (modem_connect_tones_rx_state_t *s, int tone_type, tone_report_func_t tone_callback, void *user_data)
 Initialise an instance of the modem_connect tones detector.


Detailed Description


Enumeration Type Documentation

anonymous enum

Enumerator:
MODEM_CONNECT_TONES_EC_DISABLE_MOD  The version of EC disable with some 15Hz AM content, as in V.8.


Function Documentation

int modem_connect_tones_rx ( modem_connect_tones_rx_state_t s,
const int16_t  amp[],
int  len 
)

Process a block of samples through an instance of the modem_connect tones detector.

Parameters:
s The context.
amp An array of signal samples.
len The number of samples in the array.
Returns:
The number of unprocessed samples.

int modem_connect_tones_rx_get ( modem_connect_tones_rx_state_t s  ) 

Test if a modem_connect tone has been detected.

Parameters:
s The context.
Returns:
TRUE if tone is detected, else FALSE.

modem_connect_tones_rx_state_t* modem_connect_tones_rx_init ( modem_connect_tones_rx_state_t s,
int  tone_type,
tone_report_func_t  tone_callback,
void *  user_data 
)

Initialise an instance of the modem_connect tones detector.

Parameters:
s The context.
tone_type The type of connect tone being tested for.
tone_callback An optional callback routine, used to report tones
user_data An opaque pointer passed to the callback routine,
Returns:
A pointer to the context.

int modem_connect_tones_tx ( modem_connect_tones_tx_state_t s,
int16_t  amp[],
int  len 
)

Generate a block of echo canceller disable tone samples.

Parameters:
s The context.
amp An array of signal samples.
len The number of samples to generate.
Returns:
The number of samples generated.

modem_connect_tones_tx_state_t* modem_connect_tones_tx_init ( modem_connect_tones_tx_state_t s,
int  tone_type 
)

Initialse an instance of the echo canceller disable tone generator.

Parameters:
s The context.


Generated on Tue Jul 24 11:29:29 2007 for libspandsp by  doxygen 1.5.2