|
Lines 74-79
Link Here
|
| 74 |
{0, NULL, 0, 0, 0, 0, 0, NULL, 0} |
74 |
{0, NULL, 0, 0, 0, 0, 0, NULL, 0} |
| 75 |
}; |
75 |
}; |
| 76 |
|
76 |
|
|
|
77 |
/* Legal values for SmartUPS(R) 115V units. Added by Stephen Beitzel <sbeitzel@pobox.com> |
| 78 |
** and taken from the documentation for the APC SmartUPS 700. */ |
| 79 |
static struct ups_val apc_SmartUPS_115_values[] = { |
| 80 |
{SMART_HTPOINT, {number: 129}}, |
| 81 |
{SMART_HTPOINT, {number: 132}}, |
| 82 |
{SMART_HTPOINT, {number: 135}}, |
| 83 |
{SMART_HTPOINT, {number: 138}}, |
| 84 |
|
| 85 |
{SMART_LTPOINT, {number: 97}}, |
| 86 |
{SMART_LTPOINT, {number: 100}}, |
| 87 |
{SMART_LTPOINT, {number: 103}}, |
| 88 |
{SMART_LTPOINT, {number: 106}}, |
| 89 |
|
| 90 |
{SMART_LOWBATDUR, {number: 2}}, |
| 91 |
{SMART_LOWBATDUR, {number: 5}}, |
| 92 |
{SMART_LOWBATDUR, {number: 7}}, |
| 93 |
{SMART_LOWBATDUR, {number: 10}}, |
| 94 |
|
| 95 |
/* several models accept different values here */ |
| 96 |
{SMART_WAKEUPBCAP, {number: 0}}, |
| 97 |
{SMART_WAKEUPBCAP, {number: 15}}, |
| 98 |
{SMART_WAKEUPBCAP, {number: 50}}, |
| 99 |
{SMART_WAKEUPBCAP, {number: 90}}, |
| 100 |
|
| 101 |
{SMART_WAKEUPDELAY, {number: 0}}, |
| 102 |
{SMART_WAKEUPDELAY, {number: 60}}, |
| 103 |
{SMART_WAKEUPDELAY, {number: 180}}, |
| 104 |
{SMART_WAKEUPDELAY, {number: 300}}, |
| 105 |
|
| 106 |
{SMART_NVOLTAGE, {number: 115}}, |
| 107 |
{SMART_NVOLTAGE, {number: 120}}, |
| 108 |
{SMART_NVOLTAGE, {number: 110}}, |
| 109 |
|
| 110 |
{SMART_SHUTDELAY, {number: 20}}, |
| 111 |
{SMART_SHUTDELAY, {number: 180}}, |
| 112 |
{SMART_SHUTDELAY, {number: 300}}, |
| 113 |
|
| 114 |
{SMART_LINESENS, {binary: "L"}}, |
| 115 |
{SMART_LINESENS, {binary: "M"}}, |
| 116 |
{SMART_LINESENS, {binary: "H"}}, |
| 117 |
|
| 118 |
{SMART_LINEALARM, {binary: "0"}}, |
| 119 |
{SMART_LINEALARM, {binary: "L"}}, |
| 120 |
{SMART_LINEALARM, {binary: "T"}}, |
| 121 |
{SMART_LINEALARM, {binary: "N"}}, |
| 122 |
|
| 123 |
{SMART_LABEL, {binary: NULL}}, |
| 124 |
|
| 125 |
{SMART_BREPL, {binary: NULL}}, |
| 126 |
|
| 127 |
{0, {binary: NULL}} |
| 128 |
}; |
| 129 |
|
| 77 |
/* Legal values for SmartUPS(R) 230V units. */ |
130 |
/* Legal values for SmartUPS(R) 230V units. */ |
| 78 |
static struct ups_val apc_SmartUPS_230_values[] = { |
131 |
static struct ups_val apc_SmartUPS_230_values[] = { |
| 79 |
{SMART_HTPOINT, {number: 253}}, |
132 |
{SMART_HTPOINT, {number: 253}}, |
|
Lines 141-146
Link Here
|
| 141 |
{SMART_TBLOW, "batteries-low", SMART_TBRST, "%", 1}, |
194 |
{SMART_TBLOW, "batteries-low", SMART_TBRST, "%", 1}, |
| 142 |
{SMART_TBRST, "batteries-restore", SMART_TBLOW, "+", 1}, |
195 |
{SMART_TBRST, "batteries-restore", SMART_TBLOW, "+", 1}, |
| 143 |
{0, NULL, 0, NULL, 0} |
196 |
{0, NULL, 0, NULL, 0} |
|
|
197 |
}; |
| 198 |
|
| 199 |
struct ups_model apc_SmartUPS_115 = { |
| 200 |
"apc-smart", |
| 201 |
"smart-ups", |
| 202 |
115, |
| 203 |
sizeof(apc_SmartUPS_registers)/sizeof(struct ups_reg), |
| 204 |
apc_SmartUPS_registers, |
| 205 |
apc_SmartUPS_triggers, |
| 206 |
apc_SmartUPS_115_values, |
| 207 |
apc_poll, |
| 208 |
apc_tune |
| 144 |
}; |
209 |
}; |
| 145 |
|
210 |
|
| 146 |
struct ups_model apc_SmartUPS_230 = { |
211 |
struct ups_model apc_SmartUPS_230 = { |