GNU Radio 3.5.1 C++ API
atsci_sync_tag.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2002 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 3, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022 #ifndef _ATSC_SYNC_TAG_H_
00023 #define _ATSC_SYNC_TAG_H_
00024 
00025 /*
00026  * Constants used to communicate in the second stream passed between
00027  * GrAtscFSCorrelator, GrAtscEqualizer and GrAtscFieldSyncMux.  The
00028  * second stream is sample-for-sample parallel with the streaming
00029  * floating point in the first stream.  The second stream provides
00030  * information about alignment boundaries.
00031  *
00032  * These are in floating point because the current implementation
00033  * requires that for a given module, all input streams share the same
00034  * type and all output streams share the same type.  We'd use unsigned
00035  * char otherwise.
00036  */
00037  
00038 namespace atsc_sync_tag {
00039 
00040   // Nothing special
00041   static const float NORMAL = 0.0;
00042 
00043   // The corresponding symbol is the first symbol of the
00044   // data segment sync sequence { +5, -5, -5, +5 }
00045   static const float START_SEG_SYNC = 1.0;
00046 
00047   // The corresponding symbol is the first symbol of the
00048   // field sync 1 PN511 pattern.
00049   static const float START_FIELD_SYNC_1 = 2.0;
00050 
00051   // The corresponding symbol is the first symbol of the
00052   // field sync 2 PN511 pattern.
00053   static const float START_FIELD_SYNC_2 = 3.0;
00054 };
00055 
00056 #endif /* _ATSC_SYNC_TAG_H_ */