The following source code shows an example for generating of 3bytes per 256bytes, based on hamming code ecc