summaryrefslogtreecommitdiff
path: root/rs8.h
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2011-05-30 23:37:33 +0100
committerPhilip Heron <phil@sanslogic.co.uk>2011-05-30 23:37:33 +0100
commit50eeaf77e530255d6f5b3d85727f22ab8ca5b7b4 (patch)
treec581b792890640fefab67fb6a6ed59c018eeed0b /rs8.h
Initial check-in
Diffstat (limited to 'rs8.h')
-rw-r--r--rs8.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/rs8.h b/rs8.h
new file mode 100644
index 0000000..d0513dc
--- /dev/null
+++ b/rs8.h
@@ -0,0 +1,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
+