summaryrefslogtreecommitdiff
path: root/rs8.h
blob: d0513dc4f7858357028d34db59ecc19d0db0eefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Reed-Solomon encoder
 * Copyright 2004, Phil Karn, KA9Q
 * May be used under the terms of the GNU Lesser General Public License (LGPL)
 * 
 * This version tweaked by Philip Heron <phil@sanslogic.co.uk>
*/

#ifndef _RS8_H
#define _RS8_H
#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

extern void encode_rs_8(uint8_t *data, uint8_t *parity, int pad);
extern int decode_rs_8(uint8_t *data, int *eras_pos, int no_eras, int pad);

#ifdef __cplusplus
}
#endif
#endif