GNU Radio Manual and C++ API Reference 3.7.14.0
The Free & Open Software Radio Ecosystem
reed_solomon_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2002 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 _ATSC_REED_SOLOMON_H_
24#define _ATSC_REED_SOLOMON_H_
25
26#include <gnuradio/atsc/api.h>
27#include <gnuradio/atsc/types.h>
28
29/*!
30 * \brief ATSC Reed-Solomon encoder / decoder
31 *
32 * The t=10 (207,187) code described in ATSC standard A/53B.
33 * See figure D5 on page 55.
34 */
35
37{
38
39public:
42
43 /*!
44 * \brief Add RS error correction encoding
45 */
47
48 /*!
49 * Decode RS encoded packet.
50 * \returns a count of corrected symbols, or -1 if the block was uncorrectible.
51 */
53
54private:
55 void* d_rs;
56};
57
58#endif /* _ATSC_REED_SOLOMON_H_ */
Definition: gr-atsc/include/gnuradio/atsc/types.h:166
Definition: gr-atsc/include/gnuradio/atsc/types.h:186
ATSC Reed-Solomon encoder / decoder.
Definition: reed_solomon_impl.h:37
int decode(atsc_mpeg_packet_no_sync &out, const atsc_mpeg_packet_rs_encoded &in)
void encode(atsc_mpeg_packet_rs_encoded &out, const atsc_mpeg_packet_no_sync &in)
Add RS error correction encoding.
#define ATSC_API
Definition: gr-atsc/include/gnuradio/atsc/api.h:30