7static const uint16_t SDM_PHASE_1_VOLTAGE = 0x0000;
8static const uint16_t SDM_PHASE_2_VOLTAGE = 0x0002;
9static const uint16_t SDM_PHASE_3_VOLTAGE = 0x0004;
10static const uint16_t SDM_PHASE_1_CURRENT = 0x0006;
11static const uint16_t SDM_PHASE_2_CURRENT = 0x0008;
12static const uint16_t SDM_PHASE_3_CURRENT = 0x000A;
13static const uint16_t SDM_PHASE_1_ACTIVE_POWER = 0x000C;
14static const uint16_t SDM_PHASE_2_ACTIVE_POWER = 0x000E;
15static const uint16_t SDM_PHASE_3_ACTIVE_POWER = 0x0010;
16static const uint16_t SDM_PHASE_1_APPARENT_POWER = 0x0012;
17static const uint16_t SDM_PHASE_2_APPARENT_POWER = 0x0014;
18static const uint16_t SDM_PHASE_3_APPARENT_POWER = 0x0016;
19static const uint16_t SDM_PHASE_1_REACTIVE_POWER = 0x0018;
20static const uint16_t SDM_PHASE_2_REACTIVE_POWER = 0x001A;
21static const uint16_t SDM_PHASE_3_REACTIVE_POWER = 0x001C;
22static const uint16_t SDM_PHASE_1_POWER_FACTOR = 0x001E;
23static const uint16_t SDM_PHASE_2_POWER_FACTOR = 0x0020;
24static const uint16_t SDM_PHASE_3_POWER_FACTOR = 0x0022;
25static const uint16_t SDM_PHASE_1_ANGLE = 0x0024;
26static const uint16_t SDM_PHASE_2_ANGLE = 0x0026;
27static const uint16_t SDM_PHASE_3_ANGLE = 0x0028;
29static const uint16_t SDM_AVERAGE_L_TO_N_VOLTS = 0x002A;
30static const uint16_t SDM_AVERAGE_LINE_CURRENT = 0x002E;
31static const uint16_t SDM_SUM_LINE_CURRENT = 0x0030;
32static const uint16_t SDM_TOTAL_SYSTEM_POWER = 0x0034;
33static const uint16_t SDM_TOTAL_SYSTEM_APPARENT_POWER = 0x0038;
34static const uint16_t SDM_TOTAL_SYSTEM_REACTIVE_POWER = 0x003C;
35static const uint16_t SDM_TOTAL_SYSTEM_POWER_FACTOR = 0x003E;
36static const uint16_t SDM_TOTAL_SYSTEM_PHASE_ANGLE = 0x0042;
38static const uint16_t SDM_FREQUENCY = 0x0046;
40static const uint16_t SDM_IMPORT_ACTIVE_ENERGY = 0x0048;
41static const uint16_t SDM_EXPORT_ACTIVE_ENERGY = 0x004A;
42static const uint16_t SDM_IMPORT_REACTIVE_ENERGY = 0x004C;
43static const uint16_t SDM_EXPORT_REACTIVE_ENERGY = 0x004E;
45static const uint16_t SDM_VAH_SINCE_LAST_RESET = 0x0050;
46static const uint16_t SDM_AH_SINCE_LAST_RESET = 0x0052;
47static const uint16_t SDM_TOTAL_SYSTEM_POWER_DEMAND = 0x0054;
48static const uint16_t SDM_MAXIMUM_TOTAL_SYSTEM_POWER_DEMAND = 0x0056;
49static const uint16_t SDM_CURRENT_SYSTEM_POSITIVE_POWER_DEMAND = 0x0058;
50static const uint16_t SDM_MAXIMUM_SYSTEM_POSITIVE_POWER_DEMAND = 0x005A;
51static const uint16_t SDM_CURRENT_SYSTEM_REVERSE_POWER_DEMAND = 0x005C;
52static const uint16_t SDM_MAXIMUM_SYSTEM_REVERSE_POWER_DEMAND = 0x005E;
53static const uint16_t SDM_TOTAL_SYSTEM_VA_DEMAND = 0x0064;
54static const uint16_t SDM_MAXIMUM_TOTAL_SYSTEM_VA_DEMAND = 0x0066;
55static const uint16_t SDM_NEUTRAL_CURRENT_DEMAND = 0x0068;
56static const uint16_t SDM_MAXIMUM_NEUTRAL_CURRENT = 0x006A;
57static const uint16_t SDM_LINE_1_TO_LINE_2_VOLTS = 0x00C8;
58static const uint16_t SDM_LINE_2_TO_LINE_3_VOLTS = 0x00CA;
59static const uint16_t SDM_LINE_3_TO_LINE_1_VOLTS = 0x00CC;
60static const uint16_t SDM_AVERAGE_LINE_TO_LINE_VOLTS = 0x00CE;
61static const uint16_t SDM_NEUTRAL_CURRENT = 0x00E0;
63static const uint16_t SDM_PHASE_1_LN_VOLTS_THD = 0x00EA;
64static const uint16_t SDM_PHASE_2_LN_VOLTS_THD = 0x00EC;
65static const uint16_t SDM_PHASE_3_LN_VOLTS_THD = 0x00EE;
66static const uint16_t SDM_PHASE_1_CURRENT_THD = 0x00F0;
67static const uint16_t SDM_PHASE_2_CURRENT_THD = 0x00F2;
68static const uint16_t SDM_PHASE_3_CURRENT_THD = 0x00F4;
70static const uint16_t SDM_AVERAGE_LINE_TO_NEUTRAL_VOLTS_THD = 0x00F8;
71static const uint16_t SDM_AVERAGE_LINE_CURRENT_THD = 0x00FA;
72static const uint16_t SDM_TOTAL_SYSTEM_POWER_FACTOR_INV = 0x00FE;
73static const uint16_t SDM_PHASE_1_CURRENT_DEMAND = 0x0102;
74static const uint16_t SDM_PHASE_2_CURRENT_DEMAND = 0x0104;
75static const uint16_t SDM_PHASE_3_CURRENT_DEMAND = 0x0106;
76static const uint16_t SDM_MAXIMUM_PHASE_1_CURRENT_DEMAND = 0x0108;
77static const uint16_t SDM_MAXIMUM_PHASE_2_CURRENT_DEMAND = 0x010A;
78static const uint16_t SDM_MAXIMUM_PHASE_3_CURRENT_DEMAND = 0x010C;
79static const uint16_t SDM_LINE_1_TO_LINE_2_VOLTS_THD = 0x014E;
80static const uint16_t SDM_LINE_2_TO_LINE_3_VOLTS_THD = 0x0150;
81static const uint16_t SDM_LINE_3_TO_LINE_1_VOLTS_THD = 0x0152;
82static const uint16_t SDM_AVERAGE_LINE_TO_LINE_VOLTS_THD = 0x0154;
84static const uint16_t SDM_TOTAL_ACTIVE_ENERGY = 0x0156;
85static const uint16_t SDM_TOTAL_REACTIVE_ENERGY = 0x0158;
87static const uint16_t SDM_L1_IMPORT_ACTIVE_ENERGY = 0x015A;
88static const uint16_t SDM_L2_IMPORT_ACTIVE_ENERGY = 0x015C;
89static const uint16_t SDM_L3_IMPORT_ACTIVE_ENERGY = 0x015E;
90static const uint16_t SDM_L1_EXPORT_ACTIVE_ENERGY = 0x0160;
91static const uint16_t SDM_L2_EXPORT_ACTIVE_ENERGY = 0x0162;
92static const uint16_t SDM_L3_EXPORT_ACTIVE_ENERGY = 0x0164;
93static const uint16_t SDM_L1_TOTAL_ACTIVE_ENERGY = 0x0166;
94static const uint16_t SDM_L2_TOTAL_ACTIVE_ENERGY = 0x0168;
95static const uint16_t SDM_L3_TOTAL_ACTIVE_ENERGY = 0x016a;
96static const uint16_t SDM_L1_IMPORT_REACTIVE_ENERGY = 0x016C;
97static const uint16_t SDM_L2_IMPORT_REACTIVE_ENERGY = 0x016E;
98static const uint16_t SDM_L3_IMPORT_REACTIVE_ENERGY = 0x0170;
99static const uint16_t SDM_L1_EXPORT_REACTIVE_ENERGY = 0x0172;
100static const uint16_t SDM_L2_EXPORT_REACTIVE_ENERGY = 0x0174;
101static const uint16_t SDM_L3_EXPORT_REACTIVE_ENERGY = 0x0176;
102static const uint16_t SDM_L1_TOTAL_REACTIVE_ENERGY = 0x0178;
103static const uint16_t SDM_L2_TOTAL_REACTIVE_ENERGY = 0x017A;
104static const uint16_t SDM_L3_TOTAL_REACTIVE_ENERGY = 0x017C;
106static const uint16_t SDM_CURRENT_RESETTABLE_TOTAL_ACTIVE_ENERGY = 0x0180;
107static const uint16_t SDM_CURRENT_RESETTABLE_TOTAL_REACTIVE_ENERGY = 0x0182;
108static const uint16_t SDM_CURRENT_RESETTABLE_IMPORT_ENERGY = 0x0184;
109static const uint16_t SDM_CURRENT_RESETTABLE_EXPORT_ENERGY = 0x0186;
110static const uint16_t SDM_IMPORT_POWER = 0x0500;
111static const uint16_t SDM_EXPORT_POWER = 0x0502;
Providing packet encoding functions for exchanging data with a remote host.