@springfield/ham-radio-utils 4.2.0 → 4.3.0

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.
@@ -18,6 +18,9 @@
18
18
  "items": {
19
19
  "$ref": "#/definitions/struct"
20
20
  }
21
+ },
22
+ "channelBindings": {
23
+ "$ref": "#/definitions/channelBindings"
21
24
  }
22
25
  },
23
26
  "definitions": {
@@ -27,6 +30,28 @@
27
30
  { "type": "string", "pattern": "^(0[xX][0-9a-fA-F]+|[0-9]+)$" }
28
31
  ]
29
32
  },
33
+ "channelBindings": {
34
+ "type": "object",
35
+ "required": ["records", "receiveFrequency", "transmitFrequency", "receiveTone", "transmitTone"],
36
+ "properties": {
37
+ "records": { "type": "string", "minLength": 1 },
38
+ "names": { "type": "string", "minLength": 1 },
39
+ "nameField": { "type": "string", "minLength": 1 },
40
+ "receiveFrequency": { "type": "string", "minLength": 1 },
41
+ "transmitFrequency": { "type": "string", "minLength": 1 },
42
+ "receiveTone": { "type": "string", "minLength": 1 },
43
+ "transmitTone": { "type": "string", "minLength": 1 }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "emptyWhen": {
48
+ "type": "object",
49
+ "required": ["equals"],
50
+ "properties": {
51
+ "equals": { "type": "integer", "minimum": 0, "maximum": 255 }
52
+ },
53
+ "additionalProperties": false
54
+ },
30
55
  "ui": {
31
56
  "type": "object",
32
57
  "required": ["group", "label", "widget"],
@@ -112,6 +137,31 @@
112
137
  "length": { "type": "integer", "minimum": 1 }
113
138
  },
114
139
  "additionalProperties": false
140
+ },
141
+ {
142
+ "type": "object",
143
+ "required": ["kind", "length"],
144
+ "properties": {
145
+ "kind": { "const": "lbcd" },
146
+ "length": { "type": "integer", "minimum": 1 },
147
+ "scale": { "type": "number" }
148
+ },
149
+ "additionalProperties": false
150
+ },
151
+ {
152
+ "type": "object",
153
+ "required": ["kind", "values"],
154
+ "properties": {
155
+ "kind": { "const": "tone" },
156
+ "values": {
157
+ "type": "array",
158
+ "items": { "type": "integer" },
159
+ "minItems": 1
160
+ },
161
+ "ctcssMin": { "type": "integer" },
162
+ "reverseOffset": { "type": "integer" }
163
+ },
164
+ "additionalProperties": false
115
165
  }
116
166
  ]
117
167
  },
@@ -143,7 +193,9 @@
143
193
  "items": { "$ref": "#/definitions/field" }
144
194
  },
145
195
  "count": { "type": "integer", "minimum": 1 },
146
- "stride": { "type": "integer", "minimum": 1 }
196
+ "stride": { "type": "integer", "minimum": 1 },
197
+ "emptyWhen": { "$ref": "#/definitions/emptyWhen" },
198
+ "clearEmpty": { "type": "boolean" }
147
199
  },
148
200
  "additionalProperties": false
149
201
  }