Skip to content
forked from mgm8/rsclib

Reed-Solomon C Library with Misra-C compliance

License

Notifications You must be signed in to change notification settings

miguelboing/rsclib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Reed-Solomon C Library with Misra-C compliance

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.5%
  • CMake 3.5%