Loading...
Searching...
No Matches
golay2412.h File Reference

Golay(24,12) half-rate forward error-correction code. More...

Detailed Description

Golay(24,12) half-rate forward error-correction code.

References: [Lin:2004] Lin, Shu and Costello, Daniel L. Jr., "Error Control Coding," Prentice Hall, New Jersey, 2nd edition, 2004.

Author
Joseph Gaeddert
Peter Kietzmann peter.nosp@m..kie.nosp@m.tzman.nosp@m.n@ha.nosp@m.w.ham.nosp@m.burg.nosp@m..de

Definition in file golay2412.h.

#include <stdint.h>
+ Include dependency graph for golay2412.h:

Go to the source code of this file.

void golay2412_encode (uint32_t dec_msg_len, const uint8_t msg_dec[dec_msg_len], uint8_t msg_enc[2 *dec_msg_len])
 Encode block of data using Golay(24,12) encoder.
 
void golay2412_decode (uint32_t dec_msg_len, const uint8_t msg_enc[2 *dec_msg_len], uint8_t msg_dec[dec_msg_len])
 Decode block of data using Golay(24,12) decoder.
 

Function Documentation

◆ golay2412_decode()

void golay2412_decode ( uint32_t dec_msg_len,
const uint8_t msg_enc[2 *dec_msg_len],
uint8_t msg_dec[dec_msg_len] )

Decode block of data using Golay(24,12) decoder.

Precondition
dec_msg_len and must be a multiple of 3
Parameters
[in]dec_msg_lendecoded message length (number of bytes)
[in]msg_encdecoded message [size: dec_msg_len]
[out]msg_decencoded message [size: 2 * dec_msg_len]

◆ golay2412_encode()

void golay2412_encode ( uint32_t dec_msg_len,
const uint8_t msg_dec[dec_msg_len],
uint8_t msg_enc[2 *dec_msg_len] )

Encode block of data using Golay(24,12) encoder.

Precondition
dec_msg_len and must be a multiple of 3
Parameters
[in]dec_msg_lendecoded message length (number of bytes)
[in]msg_decdecoded message [size: dec_msg_len]
[out]msg_encencoded message [size: 2 * dec_msg_len]