golay2412.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2007-2015 Joseph Gaeddert
3  * SPDX-FileCopyrightText: 2018 HAW Hamburg
4  * SPDX-License-Identifier: MIT
5  */
6 
7 #pragma once
8 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
37 void golay2412_encode(uint32_t _dec_msg_len,
38  unsigned char *_msg_dec,
39  unsigned char *_msg_enc);
40 
48 void golay2412_decode(uint32_t _dec_msg_len,
49  unsigned char *_msg_enc,
50  unsigned char *_msg_dec);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
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
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