Based on FEC-3.0.1.
mkdir build
cd build
cmake ..
make
sudo make install
#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;
}
This project is licensed under LGPLv3 license.