#include <stdlib.h>#include <string.h>#include <stdio.h>#include <fcntl.h>#include <ctype.h>#include <time.h>#include <inttypes.h>#include "spandsp/telephony.h"#include "spandsp/tone_detect.h"#include "spandsp/tone_generate.h"#include "spandsp/complex.h"#include "spandsp/complex_vector_float.h"#include "super_tone_rx.h"Defines | |
| #define | MAX_PERMITTED_FREQ_ERROR 15.0f |
| #define | BP_GAIN_IN_DB -71.01f |
| #define | SUPER_TONE_PG_SLEN (SUPER_TONE_PG_WINDOW - SUPER_TONE_FRAME_LEN/SUPER_TONE_DECIMATION_FACTOR) |
| #define | PG_GAIN_IN_DB -68.51f |
| #define | TONE_ON_OFF_LAG 60 |
Enumerations | |
| enum | { STATE_IDLE = 0, STATE_ONSET, STATE_PROVISIONAL_TONE, STATE_CONFIRMED_TONE, STATE_ABORT, STATE_MAX } |
| enum | { CRITERION_ONSET = (1 << 0), CRITERION_END = (1 << 1), CRITERION_MAX_ENERGY = (1 << 2), CRITERION_LO_STABLE = (1 << 3), CRITERION_LO_OK = (1 << 4), CRITERION_HI_STABLE = (1 << 5), CRITERION_HI_OK = (1 << 6), CRITERION_TWIST = (1 << 7), CRITERION_EARLY_CLEAN = (1 << 8), CRITERION_CLEAN = (1 << 9), CRITERION_SAME_TONES = (1 << 10), CRITERION_EARLY_SINGLE = (1 << 11), CRITERION_SINGLE = (1 << 12) } |
Functions | |
| int | supervisory_rx (supervisory_rx_state_t *s, const int16_t amp[], int len) |
| supervisory_rx_state_t * | supervisory_rx_init (supervisory_rx_state_t *s, const supervisory_rx_desc_t *desc, tone_report_func_t callback, void *user_data) |
| supervisory_rx_desc_t * | supervisory_rx_desc (supervisory_rx_desc_t *desc, const float freq_list[]) |
| supervisory_stats_t | supervisory_rx_get_stats (supervisory_rx_state_t *s) |
| anonymous enum |
1.5.6