Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
epan
golay.h
Go to the documentation of this file.
1
18
#ifndef __GOLAY_H__
19
#define __GOLAY_H__
20
21
#include <stdint.h>
22
23
#include "ws_symbol_export.h"
24
25
/* encodes a 12-bit word to a 24-bit codeword
26
*/
27
WS_DLL_PUBLIC
28
uint32_t golay_encode(
unsigned
w);
29
30
/* return a mask showing the bits which are in error in a received
31
* 24-bit codeword, or -1 if 4 errors were detected.
32
*/
33
WS_DLL_PUBLIC
34
int32_t golay_errors(uint32_t codeword);
35
36
/* decode a received codeword. Up to 3 errors are corrected for; 4
37
errors are detected as uncorrectable (return -1); 5 or more errors
38
cause an incorrect correction.
39
*/
40
WS_DLL_PUBLIC
41
int
golay_decode(uint32_t w);
42
43
#endif
44
45
/*
46
* Editor modelines
47
*
48
* Local Variables:
49
* c-basic-offset: 4
50
* tab-width: 8
51
* indent-tabs-mode: nil
52
* End:
53
*
54
* ex: set shiftwidth=4 tabstop=8 expandtab:
55
* :indentSize=4:tabSize=8:noTabs=true:
56
*/
Generated by
1.9.8