3 * Copyright 2002 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
22 #ifndef _ATSC_SYNC_TAG_H_
23 #define _ATSC_SYNC_TAG_H_
26 * Constants used to communicate in the second stream passed between
27 * GrAtscFSCorrelator, GrAtscEqualizer and GrAtscFieldSyncMux. The
28 * second stream is sample-for-sample parallel with the streaming
29 * floating point in the first stream. The second stream provides
30 * information about alignment boundaries.
32 * These are in floating point because the current implementation
33 * requires that for a given module, all input streams share the same
34 * type and all output streams share the same type. We'd use unsigned
38 namespace atsc_sync_tag {
41 static const float NORMAL = 0.0;
43 // The corresponding symbol is the first symbol of the
44 // data segment sync sequence { +5, -5, -5, +5 }
45 static const float START_SEG_SYNC = 1.0;
47 // The corresponding symbol is the first symbol of the
48 // field sync 1 PN511 pattern.
49 static const float START_FIELD_SYNC_1 = 2.0;
51 // The corresponding symbol is the first symbol of the
52 // field sync 2 PN511 pattern.
53 static const float START_FIELD_SYNC_2 = 3.0;
56 #endif /* _ATSC_SYNC_TAG_H_ */