diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2011-05-30 23:37:33 +0100 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2011-05-30 23:37:33 +0100 |
| commit | 50eeaf77e530255d6f5b3d85727f22ab8ca5b7b4 (patch) | |
| tree | c581b792890640fefab67fb6a6ed59c018eeed0b /rs8.h | |
Initial check-in
Diffstat (limited to 'rs8.h')
| -rw-r--r-- | rs8.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 + |
