Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 915 Bytes

README.md

File metadata and controls

58 lines (41 loc) · 915 Bytes

RSCLib - Reed-Solomon C Library

Overview

Based on FEC-3.0.1.

Compiling

mkdir build
cd build
cmake ..
make

Installing

sudo make install

Usage Example

#include <rsc/rsc.h>

int main()
{
    reed_solomon_t rs16 = {0};

    rsc_init(8, 0x187, 112, 11, 16, 208, &rs16);

    uint8_t data[32] = {0};
    uint8_t par[32] = {0};
    uint8_t par_len = 0;

    uint8_t i = 0;
    for(i = 0; i < 32; i++)
    {
        data[i] = i;
    }

    rsc_encode(&rs16, data, par, &par_len);

    return 0;
}

License

This project is licensed under LGPLv3 license.