new_super_rx/super_tone_rx.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/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)

Detailed Description


Enumeration Type Documentation

anonymous enum

Enumerator:
STATE_IDLE  There is no sign of a valid tone
STATE_ONSET  There has been a surge in signal energy, indicating the possible onset of a supervisory tone.
STATE_PROVING_TONE  We are checking a number of samples, to see if the tone is valid.
STATE_CONFIRMED_TONE  We have a confirmed supervisory tone or tone pair.
STATE_ABORT  We have declared the current signal invalid.

anonymous enum

Enumerator:
CRITERION_ONSET  Set if the energy just jumped up
CRITERION_TWIST  Set if the twist is out of spec


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