icom-wlan-node 0.2.1 → 0.2.2

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.
@@ -92,14 +92,14 @@ export declare const METER_CALIBRATION: {
92
92
  * Used for converting raw BCD to percentage
93
93
  */
94
94
  readonly POWER: {
95
- /** 50% power reference point */
95
+ /** 50% power reference point (raw=143, percent=50) */
96
96
  readonly HALF: {
97
- readonly raw: 323;
97
+ readonly raw: 143;
98
98
  readonly percent: 50;
99
99
  };
100
- /** 100% power reference point */
100
+ /** 100% power reference point (raw=213, percent=100) */
101
101
  readonly FULL: {
102
- readonly raw: 531;
102
+ readonly raw: 213;
103
103
  readonly percent: 100;
104
104
  };
105
105
  };
@@ -108,14 +108,14 @@ export declare const METER_CALIBRATION: {
108
108
  * Used for converting raw BCD to volts
109
109
  */
110
110
  readonly VOLTAGE: {
111
- /** Low voltage reference: 5V */
111
+ /** Low voltage reference: 5V (raw=75) */
112
112
  readonly LOW: {
113
- readonly raw: 117;
113
+ readonly raw: 75;
114
114
  readonly volts: 5;
115
115
  };
116
- /** High voltage reference: 16V */
116
+ /** High voltage reference: 16V (raw=241) */
117
117
  readonly HIGH: {
118
- readonly raw: 577;
118
+ readonly raw: 241;
119
119
  readonly volts: 16;
120
120
  };
121
121
  };
@@ -124,14 +124,14 @@ export declare const METER_CALIBRATION: {
124
124
  * Used for converting raw BCD to amperes
125
125
  */
126
126
  readonly CURRENT: {
127
- /** Low current reference: 2A */
127
+ /** Low current reference: 2A (raw=121) */
128
128
  readonly LOW: {
129
- readonly raw: 289;
129
+ readonly raw: 121;
130
130
  readonly amps: 2;
131
131
  };
132
- /** High current reference: 4A */
132
+ /** High current reference: 4A (raw=241) */
133
133
  readonly HIGH: {
134
- readonly raw: 577;
134
+ readonly raw: 241;
135
135
  readonly amps: 4;
136
136
  };
137
137
  };
@@ -123,30 +123,30 @@ exports.METER_CALIBRATION = {
123
123
  * Used for converting raw BCD to percentage
124
124
  */
125
125
  POWER: {
126
- /** 50% power reference point */
127
- HALF: { raw: 0x0143, percent: 50 },
128
- /** 100% power reference point */
129
- FULL: { raw: 0x0213, percent: 100 }
126
+ /** 50% power reference point (raw=143, percent=50) */
127
+ HALF: { raw: 143, percent: 50 },
128
+ /** 100% power reference point (raw=213, percent=100) */
129
+ FULL: { raw: 213, percent: 100 }
130
130
  },
131
131
  /**
132
132
  * Voltage (CI-V 0x15/0x15) calibration points
133
133
  * Used for converting raw BCD to volts
134
134
  */
135
135
  VOLTAGE: {
136
- /** Low voltage reference: 5V */
137
- LOW: { raw: 0x0075, volts: 5.0 },
138
- /** High voltage reference: 16V */
139
- HIGH: { raw: 0x0241, volts: 16.0 }
136
+ /** Low voltage reference: 5V (raw=75) */
137
+ LOW: { raw: 75, volts: 5.0 },
138
+ /** High voltage reference: 16V (raw=241) */
139
+ HIGH: { raw: 241, volts: 16.0 }
140
140
  },
141
141
  /**
142
142
  * Current (CI-V 0x15/0x16) calibration points
143
143
  * Used for converting raw BCD to amperes
144
144
  */
145
145
  CURRENT: {
146
- /** Low current reference: 2A */
147
- LOW: { raw: 0x0121, amps: 2.0 },
148
- /** High current reference: 4A */
149
- HIGH: { raw: 0x0241, amps: 4.0 }
146
+ /** Low current reference: 2A (raw=121) */
147
+ LOW: { raw: 121, amps: 2.0 },
148
+ /** High current reference: 4A (raw=241) */
149
+ HIGH: { raw: 241, amps: 4.0 }
150
150
  }
151
151
  };
152
152
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icom-wlan-node",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Icom WLAN (CI‑V, audio) protocol implementation for Node.js/TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",