gr-baz Package
rs.h
Go to the documentation of this file.
1
#include <
gr_core_api.h
>
2
/* User include file for the Reed-Solomon codec
3
* Copyright 2002, Phil Karn KA9Q
4
* May be used under the terms of the GNU General Public License (GPL)
5
*/
6
7
/* General purpose RS codec, 8-bit symbols */
8
GR_CORE_API
void
encode_rs_char
(
void
*
rs
,
unsigned
char
*data,
unsigned
char
*parity);
9
GR_CORE_API
int
decode_rs_char
(
void
*
rs
,
unsigned
char
*data,
int
*eras_pos,
10
int
no_eras);
11
GR_CORE_API
void
*
init_rs_char
(
unsigned
int
symsize,
unsigned
int
gfpoly,
12
unsigned
int
fcr,
unsigned
int
prim,
unsigned
int
nroots);
13
GR_CORE_API
void
free_rs_char
(
void
*
rs
);
14
15
/* General purpose RS codec, integer symbols */
16
GR_CORE_API
void
encode_rs_int
(
void
*
rs
,
int
*data,
int
*parity);
17
GR_CORE_API
int
decode_rs_int
(
void
*
rs
,
int
*data,
int
*eras_pos,
int
no_eras);
18
GR_CORE_API
void
*
init_rs_int
(
unsigned
int
symsize,
unsigned
int
gfpoly,
unsigned
int
fcr,
19
unsigned
int
prim,
unsigned
int
nroots);
20
GR_CORE_API
void
free_rs_int
(
void
*
rs
);
21
22
/* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)
23
* symbol representation
24
*/
25
GR_CORE_API
void
encode_rs_8
(
unsigned
char
*data,
unsigned
char
*parity);
26
GR_CORE_API
int
decode_rs_8
(
unsigned
char
*data,
int
*eras_pos,
int
no_eras);
27
28
/* Tables to map from conventional->dual (Taltab) and
29
* dual->conventional (Tal1tab) bases
30
*/
31
extern
unsigned
char
Taltab
[],
Tal1tab
[];
gnuradio
gnuradio-core
src
lib
reed-solomon
rs.h
Generated by
1.8.1.1