#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 | MAX_PERMITTED_FREQ_ERROR 15.0f |
#define | SUPER_TONE_PG_SLEN (SUPER_TONE_PG_WINDOW - SUPER_TONE_FRAME_LEN/SUPER_TONE_DECIMATION_FACTOR) |
#define | TONE_ON_OFF_LAG 60 |
Enumerations | |
enum | { STATE_IDLE = 0, STATE_ONSET, STATE_PROVING_TONE, STATE_CONFIRMED_TONE, STATE_ABORT } |
enum | { CRITERION_BAD = (1 << 0), CRITERION_ONSET = (1 << 1), CRITERION_TWIST = (1 << 2) } |
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 |
anonymous enum |