Loading...
Searching...
No Matches
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
23
24#include <stdint.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
39void golay2412_encode(uint32_t dec_msg_len,
40 const uint8_t msg_dec[dec_msg_len],
41 uint8_t msg_enc[2 * dec_msg_len]);
42
52void golay2412_decode(uint32_t dec_msg_len,
53 const uint8_t msg_enc[2 * dec_msg_len],
54 uint8_t msg_dec[dec_msg_len]);
55
56#ifdef __cplusplus
57}
58#endif
59
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.
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.