-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDExtra.h
61 lines (48 loc) · 915 Bytes
/
DExtra.h
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
54
55
56
57
58
59
60
61
#ifndef DEXTRA_H
#define DEXTRA_H
#include <stdint.h>
#include "DStar.h"
#include "RP2C.h"
#ifdef __cplusplus
extern "C"
{
#endif
#pragma pack(push, 1)
#define DEXTRA_DEFAULT_PORT 30001
#define DEXTRA_BUFFER_SIZE 64
#define DEXTRA_STATUS_LENGTH 3
#define DEXTRA_STATUS_ACK "ACK"
#define DEXTRA_STATUS_NACK "NAK"
#define DEXTRA_TYPE_GATEWAY 0
#define DEXTRA_TYPE_DONGLE 'D'
struct DExtraPoll
{
char call[LONG_CALLSIGN_LENGTH];
char type;
};
struct DExtraPoll2
{
char call[LONG_CALLSIGN_LENGTH];
char module;
char type;
};
struct DExtraConnect
{
char repeaterCall[LONG_CALLSIGN_LENGTH];
char repeaterModule;
char reflectorModule;
char zero;
};
struct DExtraConnectReply
{
char repeaterCall[LONG_CALLSIGN_LENGTH];
char repeaterModule;
char reflectorModule;
char status[DEXTRA_STATUS_LENGTH];
char zero;
};
#pragma pack(pop)
#ifdef __cplusplus
}
#endif
#endif