GNU Radio Manual and C++ API Reference
3.7.14.0
The Free & Open Software Radio Ecosystem
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
36
class
ATSC_API
atsci_reed_solomon
37
{
38
39
public
:
40
atsci_reed_solomon
();
41
~
atsci_reed_solomon
();
42
43
/*!
44
* \brief Add RS error correction encoding
45
*/
46
void
encode
(
atsc_mpeg_packet_rs_encoded
& out,
const
atsc_mpeg_packet_no_sync
& in);
47
48
/*!
49
* Decode RS encoded packet.
50
* \returns a count of corrected symbols, or -1 if the block was uncorrectible.
51
*/
52
int
decode(
atsc_mpeg_packet_no_sync
& out,
const
atsc_mpeg_packet_rs_encoded
& in);
53
54
private
:
55
void
* d_rs;
56
};
57
58
#endif
/* _ATSC_REED_SOLOMON_H_ */
ATSC_API
#define ATSC_API
Definition:
gr-atsc/include/gnuradio/atsc/api.h:30
atsci_reed_solomon
ATSC Reed-Solomon encoder / decoder.
Definition:
reed_solomon_impl.h:36
atsc_mpeg_packet_no_sync
Definition:
gr-atsc/include/gnuradio/atsc/types.h:165
atsc_mpeg_packet_rs_encoded
Definition:
gr-atsc/include/gnuradio/atsc/types.h:185
api.h
encode
FEC_API unsigned char encode(unsigned char *symbols, unsigned char *data, unsigned int nbytes, unsigned char encstate)
types.h
gr-atsc
include
gnuradio
atsc
reed_solomon_impl.h
Generated by
1.8.6