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_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. | |
| 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_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. | |
| anonymous enum |
| 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.
| s | The context. | |
| amp | An array of signal samples. | |
| len | The number of samples in the array. |
| int modem_connect_tones_rx_get | ( | modem_connect_tones_rx_state_t * | s | ) |
Test if a modem_connect tone has been detected.
| s | The context. |
| 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.
| 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, |
| 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.
| s | The context. | |
| amp | An array of signal samples. | |
| len | The number of samples to generate. |
| 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.
| s | The context. |
1.5.2