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 <tgmath.h>
#include <math.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/fast_convert.h"
#include "spandsp/complex.h"
#include "spandsp/vector_float.h"
#include "spandsp/complex_vector_float.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/private/super_tone_rx.h"

Defines

#define DETECTION_THRESHOLD   269338317.0f
#define TONE_TWIST   3.981f
#define TONE_TO_TOTAL_ENERGY   1.995f
#define DTMF_TO_TOTAL_ENERGY   64.152f

Functions

int super_tone_rx_add_tone (super_tone_rx_descriptor_t *desc)
int super_tone_rx_add_element (super_tone_rx_descriptor_t *desc, int tone, int f1, int f2, int min, int max)
super_tone_rx_descriptor_t * super_tone_rx_make_descriptor (super_tone_rx_descriptor_t *desc)
int super_tone_rx_free_descriptor (super_tone_rx_descriptor_t *desc)
void super_tone_rx_segment_callback (super_tone_rx_state_t *s, void(*callback)(void *data, int f1, int f2, int duration))
super_tone_rx_state_t * super_tone_rx_init (super_tone_rx_state_t *s, super_tone_rx_descriptor_t *desc, tone_report_func_t callback, void *user_data)
int super_tone_rx_release (super_tone_rx_state_t *s)
int super_tone_rx_free (super_tone_rx_state_t *s)
int super_tone_rx (super_tone_rx_state_t *s, const int16_t amp[], int samples)

Detailed Description


Generated by  doxygen 1.6.2