hamlib 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +367 -163
- package/index.d.ts +299 -1
- package/lib/binary-loader.js +3 -3
- package/lib/index.js +237 -0
- package/package.json +2 -1
- package/prebuilds/darwin-arm64/hamlib.node +0 -0
- package/prebuilds/linux-arm64/hamlib.node +0 -0
- package/prebuilds/linux-x64/hamlib.node +0 -0
- package/scripts/install.js +262 -0
- package/src/hamlib.cpp +1128 -1
- package/src/hamlib.h +48 -0
package/src/hamlib.h
CHANGED
|
@@ -24,6 +24,51 @@ class NodeHamLib : public Napi::ObjectWrap<NodeHamLib> {
|
|
|
24
24
|
Napi::Value Close(const Napi::CallbackInfo&);
|
|
25
25
|
Napi::Value Destroy(const Napi::CallbackInfo&);
|
|
26
26
|
Napi::Value GetConnectionInfo(const Napi::CallbackInfo&);
|
|
27
|
+
|
|
28
|
+
// Memory Channel Management
|
|
29
|
+
Napi::Value SetMemoryChannel(const Napi::CallbackInfo&);
|
|
30
|
+
Napi::Value GetMemoryChannel(const Napi::CallbackInfo&);
|
|
31
|
+
Napi::Value SelectMemoryChannel(const Napi::CallbackInfo&);
|
|
32
|
+
|
|
33
|
+
// RIT/XIT Control
|
|
34
|
+
Napi::Value SetRit(const Napi::CallbackInfo&);
|
|
35
|
+
Napi::Value GetRit(const Napi::CallbackInfo&);
|
|
36
|
+
Napi::Value SetXit(const Napi::CallbackInfo&);
|
|
37
|
+
Napi::Value GetXit(const Napi::CallbackInfo&);
|
|
38
|
+
Napi::Value ClearRitXit(const Napi::CallbackInfo&);
|
|
39
|
+
|
|
40
|
+
// Scanning Operations
|
|
41
|
+
Napi::Value StartScan(const Napi::CallbackInfo&);
|
|
42
|
+
Napi::Value StopScan(const Napi::CallbackInfo&);
|
|
43
|
+
|
|
44
|
+
// Level Controls
|
|
45
|
+
Napi::Value SetLevel(const Napi::CallbackInfo&);
|
|
46
|
+
Napi::Value GetLevel(const Napi::CallbackInfo&);
|
|
47
|
+
Napi::Value GetSupportedLevels(const Napi::CallbackInfo&);
|
|
48
|
+
|
|
49
|
+
// Function Controls
|
|
50
|
+
Napi::Value SetFunction(const Napi::CallbackInfo&);
|
|
51
|
+
Napi::Value GetFunction(const Napi::CallbackInfo&);
|
|
52
|
+
Napi::Value GetSupportedFunctions(const Napi::CallbackInfo&);
|
|
53
|
+
|
|
54
|
+
// Split Operations
|
|
55
|
+
Napi::Value SetSplitFreq(const Napi::CallbackInfo&);
|
|
56
|
+
Napi::Value GetSplitFreq(const Napi::CallbackInfo&);
|
|
57
|
+
Napi::Value SetSplitMode(const Napi::CallbackInfo&);
|
|
58
|
+
Napi::Value GetSplitMode(const Napi::CallbackInfo&);
|
|
59
|
+
Napi::Value SetSplit(const Napi::CallbackInfo&);
|
|
60
|
+
Napi::Value GetSplit(const Napi::CallbackInfo&);
|
|
61
|
+
|
|
62
|
+
// VFO Operations
|
|
63
|
+
Napi::Value VfoOperation(const Napi::CallbackInfo&);
|
|
64
|
+
|
|
65
|
+
// Antenna Selection
|
|
66
|
+
Napi::Value SetAntenna(const Napi::CallbackInfo&);
|
|
67
|
+
Napi::Value GetAntenna(const Napi::CallbackInfo&);
|
|
68
|
+
|
|
69
|
+
// Static method to get supported rig models
|
|
70
|
+
static Napi::Value GetSupportedRigs(const Napi::CallbackInfo&);
|
|
71
|
+
|
|
27
72
|
static Napi::Function GetClass(Napi::Env);
|
|
28
73
|
|
|
29
74
|
static int freq_change_cb(RIG*, vfo_t, freq_t, void*);
|
|
@@ -41,4 +86,7 @@ class NodeHamLib : public Napi::ObjectWrap<NodeHamLib> {
|
|
|
41
86
|
|
|
42
87
|
// Helper method to detect network address format
|
|
43
88
|
bool isNetworkAddress(const char* path);
|
|
89
|
+
|
|
90
|
+
// Static callback helper for rig_list_foreach
|
|
91
|
+
static int rig_list_callback(const struct rig_caps *caps, void *data);
|
|
44
92
|
};
|