Skip to content

C++ Header-Only Hamming 7,4 (+Parity) Decoder & Encoder

License

Notifications You must be signed in to change notification settings

bandle/Hamming84

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hamming84

Hamming 7,4 (+Parity) Decoder & Encoder

Hamming84 is a header only C++ Library for Hamming Error correction.

Usage

Encoding

#include "Hamming84.h"
// Payload data
struct myData = {...};
myData in = {};

// Reserve Buffer Space
Hamming84::ParamStore<myData> buffer;
// Encode to buffer
Hamming84::encode(in, buffer);
// Do sth with buffer

Decoding

#include "Hamming84.h"
// Payload data
struct myData = {...};

// Input data
Hamming84::ParamStore<myData> buffer;
buffer = // put data here
        
// Prepare struct for data
myData out;
// Encode to buffer
Hamming84::decode(out, buffer);
// Do sth with out

Test

You find an end-to-end test with random introduced errors in test.cpp

About

C++ Header-Only Hamming 7,4 (+Parity) Decoder & Encoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published