GNU Radio Manual and C++ API Reference 3.10.5.1
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 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_DTV_ATSC_CONSTS_H
12#define INCLUDED_DTV_ATSC_CONSTS_H
13
14#include <gnuradio/dtv/api.h>
15
16namespace gr {
17namespace dtv {
18
19// These will go into an mpeg_consts.h once other mod/demods are done
20static constexpr int ATSC_MPEG_DATA_LENGTH = 187;
21static constexpr int ATSC_MPEG_PKT_LENGTH = 188; // sync + data
22static constexpr int ATSC_MPEG_RS_ENCODED_LENGTH = 207;
23static constexpr int MPEG_SYNC_BYTE = 0x47;
24static constexpr int MPEG_TRANSPORT_ERROR_BIT = 0x80; // top bit of byte after SYNC
25
26// ATSC specific constants
27static constexpr double ATSC_SYMBOL_RATE = 4.5e6 / 286 * 684; // ~10.76 MHz
28static constexpr double ATSC_DATA_SEGMENT_RATE = ATSC_SYMBOL_RATE / 832; // ~12.935 kHz
29static constexpr int ATSC_DATA_SEGMENT_LENGTH =
30 832; // includes 4 sync symbols at beginning
31static constexpr int ATSC_DSEGS_PER_FIELD = 312; // regular data segs / field
32
33} /* namespace dtv */
34} /* namespace gr */
35
36#endif /* INCLUDED_DTV_ATSC_CONSTS_H */
static constexpr int MPEG_TRANSPORT_ERROR_BIT
Definition: atsc_consts.h:24
static constexpr int ATSC_MPEG_PKT_LENGTH
Definition: atsc_consts.h:21
static constexpr int ATSC_MPEG_RS_ENCODED_LENGTH
Definition: atsc_consts.h:22
static constexpr int ATSC_MPEG_DATA_LENGTH
Definition: atsc_consts.h:20
static constexpr double ATSC_SYMBOL_RATE
Definition: atsc_consts.h:27
static constexpr int ATSC_DSEGS_PER_FIELD
Definition: atsc_consts.h:31
static constexpr int ATSC_DATA_SEGMENT_LENGTH
Definition: atsc_consts.h:29
static constexpr double ATSC_DATA_SEGMENT_RATE
Definition: atsc_consts.h:28
static constexpr int MPEG_SYNC_BYTE
Definition: atsc_consts.h:23
GNU Radio logging wrapper.
Definition: basic_block.h:29