tone_detect.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <tgmath.h>
#include <math.h>
#include "floating_fudge.h"
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <fcntl.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/private/tone_detect.h"

Functions

void make_goertzel_descriptor (goertzel_descriptor_t *t, float freq, int samples)
goertzel_state_t * goertzel_init (goertzel_state_t *s, goertzel_descriptor_t *t)
int goertzel_release (goertzel_state_t *s)
int goertzel_free (goertzel_state_t *s)
void goertzel_reset (goertzel_state_t *s)
int goertzel_update (goertzel_state_t *s, const int16_t amp[], int samples)
float goertzel_result (goertzel_state_t *s)
complexf_t periodogram (const complexf_t coeffs[], const complexf_t amp[], int len)
int periodogram_prepare (complexf_t sum[], complexf_t diff[], const complexf_t amp[], int len)
complexf_t periodogram_apply (const complexf_t coeffs[], const complexf_t sum[], const complexf_t diff[], int len)
int periodogram_generate_coeffs (complexf_t coeffs[], float freq, int sample_rate, int window_len)
float periodogram_generate_phase_offset (complexf_t *offset, float freq, int sample_rate, int interval)
float periodogram_freq_error (const complexf_t *phase_offset, float scale, const complexf_t *last_result, const complexf_t *result)

Detailed Description


Generated by  doxygen 1.6.2