GNU Radio C++ API Reference: atsc_consts.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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 {
17 namespace dtv {
18
19// These will go into an mpeg_consts.h once other mod/demods are done
20 static constexpr int ATSC_MPEG_DATA_LENGTH = 187;
21 static constexpr int ATSC_MPEG_PKT_LENGTH = 188; // sync + data
22 static constexpr int ATSC_MPEG_RS_ENCODED_LENGTH = 207;
23 static constexpr int MPEG_SYNC_BYTE = 0x47;
24 static constexpr int MPEG_TRANSPORT_ERROR_BIT = 0x80; // top bit of byte after SYNC
25
26// ATSC specific constants
27 static constexpr double ATSC_SYMBOL_RATE = 4.5e6 / 286 * 684; // ~10.76 MHz
28 static constexpr double ATSC_DATA_SEGMENT_RATE = ATSC_SYMBOL_RATE / 832; // ~12.935 kHz
29 static constexpr int ATSC_DATA_SEGMENT_LENGTH =
30 832; // includes 4 sync symbols at beginning
31 static 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 */
api.h
gr::dtv
Definition atsc_consts.h:17
gr::dtv::MPEG_TRANSPORT_ERROR_BIT
static constexpr int MPEG_TRANSPORT_ERROR_BIT
Definition atsc_consts.h:24
gr::dtv::ATSC_MPEG_PKT_LENGTH
static constexpr int ATSC_MPEG_PKT_LENGTH
Definition atsc_consts.h:21
gr::dtv::ATSC_MPEG_RS_ENCODED_LENGTH
static constexpr int ATSC_MPEG_RS_ENCODED_LENGTH
Definition atsc_consts.h:22
gr::dtv::ATSC_MPEG_DATA_LENGTH
static constexpr int ATSC_MPEG_DATA_LENGTH
Definition atsc_consts.h:20
gr::dtv::ATSC_SYMBOL_RATE
static constexpr double ATSC_SYMBOL_RATE
Definition atsc_consts.h:27
gr::dtv::ATSC_DSEGS_PER_FIELD
static constexpr int ATSC_DSEGS_PER_FIELD
Definition atsc_consts.h:31
gr::dtv::ATSC_DATA_SEGMENT_LENGTH
static constexpr int ATSC_DATA_SEGMENT_LENGTH
Definition atsc_consts.h:29
gr::dtv::ATSC_DATA_SEGMENT_RATE
static constexpr double ATSC_DATA_SEGMENT_RATE
Definition atsc_consts.h:28
gr::dtv::MPEG_SYNC_BYTE
static constexpr int MPEG_SYNC_BYTE
Definition atsc_consts.h:23
gr
GNU Radio logging wrapper.
Definition basic_block.h:29