spandsp  3.0.0
private/godard.h
1 /*
2  * SpanDSP - a series of DSP components for telephony
3  *
4  * private/godard.h - Godard symbol timing error detector.
5  *
6  * Written by Steve Underwood <steveu@coppice.org>
7  *
8  * Copyright (C) 2024 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_GODARD_H_)
27 #define _SPANDSP_PRIVATE_GODARD_H_
28 
30 {
32 #if defined(SPANDSP_USE_FIXED_POINTx)
33  /*! Low band edge filter for symbol sync. */
34  int32_t low_band_edge[2];
35  /*! High band edge filter for symbol sync. */
36  int32_t high_band_edge[2];
37  /*! DC filter for symbol sync. */
38  int32_t dc_filter[2];
39  /*! Baud phase for symbol sync. */
40  int32_t baud_phase;
41 #else
42  /*! Low band edge filter for symbol sync. */
43  float low_band_edge[2];
44  /*! High band edge filter for symbol sync. */
45  float high_band_edge[2];
46  /*! DC filter for symbol sync. */
47  float dc_filter[2];
48  /*! Baud phase for symbol sync. */
49  float baud_phase;
50 #endif
51  /*! \brief The total symbol timing correction since the carrier came up.
52  This is only for performance analysis purposes. */
54 };
55 
56 #endif
57 /*- End of file ------------------------------------------------------------*/
Definition: private/godard.h:29
float baud_phase
Definition: private/godard.h:49
float dc_filter[2]
Definition: private/godard.h:47
int total_baud_timing_correction
The total symbol timing correction since the carrier came up. This is only for performance analysis p...
Definition: private/godard.h:53
float low_band_edge[2]
Definition: private/godard.h:43
float high_band_edge[2]
Definition: private/godard.h:45
Definition: godard.h:31