spandsp  0.0.6
private/super_tone_rx.h
1 /*
2  * SpanDSP - a series of DSP components for telephony
3  *
4  * private/super_tone_rx.h - Flexible telephony supervisory tone detection.
5  *
6  * Written by Steve Underwood <steveu@coppice.org>
7  *
8  * Copyright (C) 2003 Steve Underwood
9  *
10  * All rights reserved.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 2.1,
14  * as published by the Free Software Foundation.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this program; if not, write to the Free Software
23  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 #if !defined(_SPANDSP_PRIVATE_SUPER_TONE_RX_H_)
27 #define _SPANDSP_PRIVATE_SUPER_TONE_RX_H_
28 
29 #define SUPER_TONE_BINS 128
30 
32 {
33  int f1;
34  int f2;
35  int recognition_duration;
36  int min_duration;
37  int max_duration;
38 };
39 
41 {
42  int used_frequencies;
43  int monitored_frequencies;
44  int pitches[SUPER_TONE_BINS/2][2];
45  int tones;
46  super_tone_rx_segment_t **tone_list;
47  int *tone_segs;
49 };
50 
52 {
54  float energy;
55  int detected_tone;
56  int rotation;
57  tone_report_func_t tone_callback;
58  tone_segment_func_t segment_callback;
59  void *callback_data;
60  super_tone_rx_segment_t segments[11];
61  goertzel_state_t state[];
62 };
63 
64 #endif
65 /*- End of file ------------------------------------------------------------*/
Definition: private/super_tone_rx.h:51
Definition: private/super_tone_rx.h:31
Definition: private/super_tone_rx.h:40
Definition: tone_detect.h:45
Definition: tone_detect.h:32