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.

Go to the source code of this file.

void golay2412_encode (uint32_t _dec_msg_len, unsigned char *_msg_dec, unsigned char *_msg_enc)
 encode block of data using Golay(24,12) encoder
 
void golay2412_decode (uint32_t _dec_msg_len, unsigned char *_msg_enc, unsigned char *_msg_dec)
 decode block of data using Golay(24,12) decoder
 

Function Documentation

◆ golay2412_decode()

void golay2412_decode ( uint32_t  _dec_msg_len,
unsigned char *  _msg_enc,
unsigned char *  _msg_dec 
)

decode block of data using Golay(24,12) decoder

Parameters
[in]_dec_msg_lendecoded message length (number of bytes)
[in]_msg_decencoded message [size: 1 x 2*_dec_msg_len]
[in]_msg_encdecoded message [size: 1 x _dec_msg_len]

◆ golay2412_encode()

void golay2412_encode ( uint32_t  _dec_msg_len,
unsigned char *  _msg_dec,
unsigned char *  _msg_enc 
)

encode block of data using Golay(24,12) encoder

Precondition
_dec_msg_len and sizeof(_msg_dec) accordingly have to be multiples of 3
Parameters
[in]_dec_msg_lendecoded message length (number of bytes)
[in]_msg_decdecoded message [size: 1 x _dec_msg_len]
[in]_msg_encencoded message [size: 1 x 2*_dec_msg_len]