new_super_rx/xxx.c File Reference

#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)

Detailed Description


Enumeration Type Documentation

anonymous enum

Enumerator:
CRITERION_ONSET  Set if the energy just jumped up
CRITERION_END  Set if the energy just fell sharply
CRITERION_MAX_ENERGY  Set if the basic energy criterion is not being met
CRITERION_LO_STABLE  Set if the lower frequency is not stable
CRITERION_LO_OK  Set if the lower frequency is not OK
CRITERION_HI_STABLE  Set if the higher frequency is not stable
CRITERION_HI_OK  Set if the higher frequency is not OK
CRITERION_TWIST  Set if the twist is out of spec
CRITERION_EARLY_CLEAN  Set if the detection is not clean (early in confirmation process)
CRITERION_CLEAN  Set if the detection is not clean
CRITERION_SAME_TONES  Set if the detected tones differ from last time (dual tone only)
CRITERION_EARLY_SINGLE  Set if only a single tone detected (early in confirmation process)
CRITERION_SINGLE  Set if only a single tone detected


Generated on Tue Oct 7 20:25:52 2008 for spandsp by  doxygen 1.5.6