Changeset 5296
- Timestamp:
- 10/09/07 21:05:12 (6 years ago)
- Location:
- experimental/components/ReedSolomon/trunk/ReedSolomon
- Files:
-
- 3 added
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/ReedSolomon/trunk/ReedSolomon/Doxyfile
r5295 r5296 18 18 # by quotes) that should identify the project. 19 19 20 PROJECT_NAME = "RS_Encoder_ 8"20 PROJECT_NAME = "RS_Encoder_char" 21 21 22 22 # The PROJECT_NUMBER tag can be used to enter a project or revision number. … … 461 461 462 462 INPUT = documentation.txt \ 463 RS_Encoder_8.cpp \ 464 RS_Encoder_8.h 463 src/RS_Encoder_char.cpp \ 464 src/RS_Encoder_char.h \ 465 src/RS_Decoder_char.cpp \ 466 src/RS_Decoder_char.h 465 467 466 468 # If the value of the INPUT tag contains directories, you can use the -
experimental/components/ReedSolomon/trunk/ReedSolomon/configure.ac
r5295 r5296 1 AC_INIT(RS_Encoder_ 8, 0.6.0)1 AC_INIT(RS_Encoder_char, 0.6.0) 2 2 AM_INIT_AUTOMAKE 3 3 -
experimental/components/ReedSolomon/trunk/ReedSolomon/documentation.txt
r5295 r5296 3 3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE RS_Encoder_ 8.5 This file is part of the OSSIE RS_Encoder_char. 6 6 7 OSSIE RS_Encoder_ 8is free software; you can redistribute it and/or modify7 OSSIE RS_Encoder_char is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE RS_Encoder_ 8is distributed in the hope that it will be useful,12 OSSIE RS_Encoder_char is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE RS_Encoder_ 8; if not, write to the Free Software18 along with OSSIE RS_Encoder_char; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 21 21 ****************************************************************************/ 22 22 23 /*! \mainpage RS_ Encoder_823 /*! \mainpage RS_Codec_char 24 24 25 25 \section description Basic description 26 Include a basic description of the RS_Encoder_8 component here 26 These functions implement Reed-Solomon error control encoding and decoding. 27 28 The functions take unsigned char arrays and can handle codes with symbols 29 of 8 bits or less (i.e., with codewords of 255 symbols or less). 30 31 They are implemented using code from http://www.ka9q.net/code/fec/ 27 32 28 33 \section properties Properties 29 34 This section details the properties 30 35 31 \subsection prop_property_name Property Name (DCE:xxxx-xxx-xxx-xxx-xxxx) 36 \subsection Symbol_Size SymSize (DCE:65f8707e-769f-11dc-9fa3-0015c55120b9) 37 The symbol size in bits, up to 8. The resulting Reed-Solomon code word will 38 have 2^SymSize - 1 symbols. The codeword may be shortened with the padding 39 property described below. The default value is 8. 40 41 \subsection Generator_polynomial GenPoly (DCE:341d1c94-769f-11dc-90a1-0015c55120b9) 42 the extended Galois field generator polynomial coefficients with the 0th 43 coefficient in the low order bit. The polynomial must be primitive. 44 Default value is 0x187 (x^8 + x^7 + x^2 + x + 1) 45 46 \subsection F_C_R FCR (DCE:046586a8-769f-11dc-8235-0015c55120b9) 47 The first consecutive root of the Reed Solomon code generator polynomial. 48 Default value is 112. 49 50 \subsection primitive Primitive (DCE:e20771a2-769e-11dc-a9a6-0015c55120b9) 51 The primitive element in the Galois field, in index form, used to generate the 52 Reed Solomon code generator polynomial. Default value is 11. 53 54 \subsection number_roots nRoots (DCE:c4ee9424-769e-11dc-8471-0015c55120b9) 55 The number of roots in the Reed Solomon code 56 generator polynomial. This equals the number of parity symbols 57 per code block. Default value is 32. 58 59 \subsection padding Padding (DCE:b14f7b72-769e-11dc-9508-0015c55120b9) 60 Gives the number of leading symbols in the codeword 61 that are implicitly padded to zero in a shortened code block. 62 Default value is 0. 63 64 The resulting Reed-Solomon code has parameters (N,K), where 65 N = 2^\fBsymsize\fR - \fBpad\fR - 1 and K = N-\fBnroots\fR. 66 32 67 33 68 \section interfaces Interfaces … … 45 80 46 81 \section references References 47 82 http://www.ka9q.net/code/fec/ 48 83 */ -
experimental/components/ReedSolomon/trunk/ReedSolomon/src/rs.h
r5295 r5296 24 24 void free_rs_char(void *rs); 25 25 26 /* CCSDS standard (255,223) RS codec with conventional (*not* dual-basis)27 * * symbol representation28 * */29 void encode_rs_8(unsigned char *data,unsigned char *parity,int pad);30 int decode_rs_8(unsigned char *data,int *eras_pos,int no_eras,int pad);31 26 32