forked from IDI-Systems/acre2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCfgAcreRadios.hpp
88 lines (68 loc) · 3.23 KB
/
CfgAcreRadios.hpp
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
class CfgAcreComponents {
class ACRE_BaseRadio;
class ACRE_SEM70_base: ACRE_BaseRadio {
class Interfaces;
isAcre = 1;
};
class ACRE_SEM70: ACRE_SEM70_base {
name = QUOTE(NAME_SEM70);
sinadRating = -117;
sensitivityMin = -117;
sensitivityMax = -50;
isPackRadio = 1;
isDeployable = 0;
connectors[] = {
{"Antenna", ACRE_CONNECTOR_BNC},
{"Audio/Data", ACRE_CONNECTOR_U_283},
{"Lower Accessory", ACRE_CONNECTOR_CONN_57PIN},
{"Upper Accessory", ACRE_CONNECTOR_CONN_57PIN}
};
defaultComponents[] = {
{0, "ACRE_SEM70_LONG_BNC"}
};
class InterfaceClasses {
CfgAcreDataInterface = "DefaultRadioInterface";
CfgAcreInteractInterface = "DefaultRadioInterface";
CfgAcreTransmissionInterface = "DefaultRadioInterface";
CfgAcrePhysicalInterface = "DefaultRadioInterface";
};
class Interfaces: Interfaces {
class CfgAcreDataInterface {
getListInfo = QFUNC(getListInfo);
setVolume = QFUNC(setVolume); // [0-1]
getVolume = QFUNC(getVolume); // [] = 0-1
setSpatial = QFUNC(setSpatial);
getSpatial = QFUNC(getSpatial);
setChannelData = QFUNC(setChannelData); // [channelNumber, [channelData] ]
getChannelData = QFUNC(getChannelData); // [channelNumber] = channelData
getCurrentChannelData = QFUNC(getCurrentChannelData); // channelData (of current channel)
getCurrentChannel = QFUNC(getCurrentChannel); // [] = channelNumber
setCurrentChannel = QFUNC(setCurrentChannel); // [channelNumber]
getStates = QFUNC(getStates); // [] = [ [stateName, stateData], [stateName, stateData] ]
getState = QFUNC(getState); // [stateName] = stateData
setState = QFUNC(setState); // [stateName, stateData] = sets state
setStateCritical = QFUNC(setState); // [stateName, stateData] = sets state
getOnOffState = QFUNC(getOnOffState); // [] = 0/1
setOnOffState = QFUNC(setOnOffState); // [ZeroOrOne]
initializeComponent = QFUNC(initializeRadio);
getChannelDescription = QFUNC(getChannelDescription);
isExternalAudio = QFUNC(isExternalAudio);
};
class CfgAcrePhysicalInterface {
getExternalAudioPosition = QFUNC(getExternalAudioPosition);
};
class CfgAcreTransmissionInterface {
handleBeginTransmission = QFUNC(handleBeginTransmission);
handleEndTransmission = QFUNC(handleEndTransmission);
handleSignalData = QFUNC(handleSignalData);
handleMultipleTransmissions = QFUNC(handleMultipleTransmissions);
handlePTTDown = QFUNC(handlePTTDown);
handlePTTUp = QFUNC(handlePTTUp);
};
class CfgAcreInteractInterface {
openGui = QFUNC(openGui); // [RadioId]
closeGui = QFUNC(closeGui); // []
};
};
};
};