-
Notifications
You must be signed in to change notification settings - Fork 2
/
WsjtxConstants.cs
53 lines (45 loc) · 1.37 KB
/
WsjtxConstants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
namespace WsjtxUtils.WsjtxMessages
{
/// <summary>
/// Useful constant values for WSJT-X
/// </summary>
public static class WsjtxConstants
{
/// <summary>
/// Size of a short value
/// </summary>
public const int SizeOfShort = sizeof(short);
/// <summary>
/// Size of an int value
/// </summary>
public const int SizeOfInt = sizeof(int);
/// <summary>
/// Size of a long value
/// </summary>
public const int SizeOfLong = sizeof(long);
/// <summary>
/// Value for true
/// </summary>
public const byte TrueValue = 0x01;
/// <summary>
/// Value for false
/// </summary>
public const byte FalseValue = 0x00;
/// <summary>
/// Julian date constant
/// </summary>
public const double JulianConstant = 2415018.5;
/// <summary>
/// WSJT-X packet header magic number
/// </summary>
public const uint MagicNumber = 0xadbccbda;
/// <summary>
/// Length of wsjtx packet header in bytes
/// </summary>
public const int HeaderLengthInBytes = 8;
/// <summary>
/// Position of message type in a valid WSJTX message
/// </summary>
public const int MessageTypePosition = HeaderLengthInBytes;
}
}