Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
golay.h
Go to the documentation of this file.
1
18#pragma once
19#include <stdint.h>
20
21#include "ws_symbol_export.h"
22
29WS_DLL_PUBLIC
30uint32_t golay_encode(unsigned w);
31
41WS_DLL_PUBLIC
42int32_t golay_errors(uint32_t codeword);
43
54WS_DLL_PUBLIC
55int golay_decode(uint32_t w);
56
57/*
58 * Editor modelines
59 *
60 * Local Variables:
61 * c-basic-offset: 4
62 * tab-width: 8
63 * indent-tabs-mode: nil
64 * End:
65 *
66 * ex: set shiftwidth=4 tabstop=8 expandtab:
67 * :indentSize=4:tabSize=8:noTabs=true:
68 */
WS_DLL_PUBLIC int32_t golay_errors(uint32_t codeword)
Returns a mask showing the bits which are in error in a received Golay codeword.
Definition golay.c:131
WS_DLL_PUBLIC uint32_t golay_encode(unsigned w)
Encodes a 12-bit word to a 24-bit codeword.
Definition golay.c:107
WS_DLL_PUBLIC int golay_decode(uint32_t w)
Decodes a Golay codeword.
Definition golay.c:234