GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
atsc_consts.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
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)
10  * any later version.
11  *
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.
16  *
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.
21  */
22 
23 #ifndef INCLUDED_DTV_ATSC_CONSTS_H
24 #define INCLUDED_DTV_ATSC_CONSTS_H
25 
26 #include <gnuradio/dtv/api.h>
27 
28 namespace gr {
29 namespace dtv {
30 
31 // These will go into an mpeg_consts.h once other mod/demods are done
32 static const int ATSC_MPEG_DATA_LENGTH = 187;
33 static const int ATSC_MPEG_PKT_LENGTH = 188; // sync + data
34 static const int ATSC_MPEG_RS_ENCODED_LENGTH = 207;
35 static const int MPEG_SYNC_BYTE = 0x47;
36 static const int MPEG_TRANSPORT_ERROR_BIT = 0x80; // top bit of byte after SYNC
37 
38 // ATSC specific constants
39 static const double ATSC_SYMBOL_RATE = 4.5e6 / 286 * 684; // ~10.76 MHz
40 static const double ATSC_DATA_SEGMENT_RATE = ATSC_SYMBOL_RATE / 832; // ~12.935 kHz
41 static const int ATSC_DATA_SEGMENT_LENGTH = 832; // includes 4 sync symbols at beginning
42 static const int ATSC_DSEGS_PER_FIELD = 312; // regular data segs / field
43 
44 } /* namespace dtv */
45 } /* namespace gr */
46 
47 #endif /* INCLUDED_DTV_ATSC_CONSTS_H */
static const int ATSC_DSEGS_PER_FIELD
Definition: atsc_consts.h:42
static const int MPEG_TRANSPORT_ERROR_BIT
Definition: atsc_consts.h:36
static const double ATSC_SYMBOL_RATE
Definition: atsc_consts.h:39
static const int ATSC_DATA_SEGMENT_LENGTH
Definition: atsc_consts.h:41
static const double ATSC_DATA_SEGMENT_RATE
Definition: atsc_consts.h:40
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
static const int ATSC_MPEG_RS_ENCODED_LENGTH
Definition: atsc_consts.h:34
static const int ATSC_MPEG_PKT_LENGTH
Definition: atsc_consts.h:33
static const int MPEG_SYNC_BYTE
Definition: atsc_consts.h:35
static const int ATSC_MPEG_DATA_LENGTH
Definition: atsc_consts.h:32