#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/complex.h"
#include "spandsp/complex_vector_float.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "super_tone_rx.h"
Defines | |
#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_DUAL = (1 << 0), CRITERION_MAX_EN = (1 << 1), CRITERION_ONSET = (1 << 2), CRITERION_END = (1 << 3), CRITERION_LO_STABLE = (1 << 4), CRITERION_HI_STABLE = (1 << 5), CRITERION_TWIST = (1 << 6), CRITERION_CLEAN = (1 << 7), CRITERION_LO_OK = (1 << 8), CRITERION_HI_OK = (1 << 9), CRITERION_SAME_DGT = (1 << 10), CRITERION_CLEAN_MB = (1 << 11), CRITERION_SINGLE = (1 << 12), CRITERION_SINGLE_MB = (1 << 13) } |
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) |