lib/rc-switch.c

changeset 22
a3b058c67289
parent 20
f7f9463cdefd
child 24
873786a20a61
equal deleted inserted replaced
21:ff107bf4d216 22:a3b058c67289
143 * Switch a remote switch on (Type D REV) 143 * Switch a remote switch on (Type D REV)
144 * 144 *
145 * @param sGroup Code of the switch group (A,B,C,D) 145 * @param sGroup Code of the switch group (A,B,C,D)
146 * @param nDevice Number of the switch itself (1..3) 146 * @param nDevice Number of the switch itself (1..3)
147 */ 147 */
148 /*void RCSwitch::switchOn(char sGroup, int nDevice) { 148 void switchOn_D(char sGroup, int nDevice) {
149 this->sendTriState( this->getCodeWordD(sGroup, nDevice, true) ); 149 sendTriState( getCodeWordD(sGroup, nDevice, true) );
150 }*/ 150 }
151 151
152 /** 152
153
154 /*
153 * Switch a remote switch off (Type D REV) 155 * Switch a remote switch off (Type D REV)
154 * 156 *
155 * @param sGroup Code of the switch group (A,B,C,D) 157 * @param sGroup Code of the switch group (A,B,C,D)
156 * @param nDevice Number of the switch itself (1..3) 158 * @param nDevice Number of the switch itself (1..3)
157 */ 159 */
158 /*void RCSwitch::switchOff(char sGroup, int nDevice) { 160 void switchOff_D(char sGroup, int nDevice) {
159 this->sendTriState( this->getCodeWordD(sGroup, nDevice, false) ); 161 sendTriState( getCodeWordD(sGroup, nDevice, false) );
160 }*/ 162 }
161 163
162 /** 164
165
166 /*
163 * Switch a remote switch on (Type C Intertechno) 167 * Switch a remote switch on (Type C Intertechno)
164 * 168 *
165 * @param sFamily Familycode (a..f) 169 * @param sFamily Familycode (a..f)
166 * @param nGroup Number of group (1..4) 170 * @param nGroup Number of group (1..4)
167 * @param nDevice Number of device (1..4) 171 * @param nDevice Number of device (1..4)
168 */ 172 */
169 /*void RCSwitch::switchOn(char sFamily, int nGroup, int nDevice) { 173 void switchOn_C(char sFamily, int nGroup, int nDevice) {
170 this->sendTriState( this->getCodeWordC(sFamily, nGroup, nDevice, true) ); 174 sendTriState( getCodeWordC(sFamily, nGroup, nDevice, true) );
171 }*/ 175 }
176
177
172 178
173 /** 179 /**
174 * Switch a remote switch off (Type C Intertechno) 180 * Switch a remote switch off (Type C Intertechno)
175 * 181 *
176 * @param sFamily Familycode (a..f) 182 * @param sFamily Familycode (a..f)
177 * @param nGroup Number of group (1..4) 183 * @param nGroup Number of group (1..4)
178 * @param nDevice Number of device (1..4) 184 * @param nDevice Number of device (1..4)
179 */ 185 */
180 /*void RCSwitch::switchOff(char sFamily, int nGroup, int nDevice) { 186 void switchOff_C(char sFamily, int nGroup, int nDevice) {
181 this->sendTriState( this->getCodeWordC(sFamily, nGroup, nDevice, false) ); 187 sendTriState( getCodeWordC(sFamily, nGroup, nDevice, false) );
182 }*/ 188 }
183 189
184 190
185 191
186 /* 192 /*
187 * Switch a remote switch on (Type B with two rotary/sliding switches) 193 * Switch a remote switch on (Type B with two rotary/sliding switches)
188 * 194 *
189 * @param nAddressCode Number of the switch group (1..4) 195 * @param nAddressCode Number of the switch group (1..4)
190 * @param nChannelCode Number of the switch itself (1..4) 196 * @param nChannelCode Number of the switch itself (1..4)
191 */ 197 */
192 void switchOn(int nAddressCode, int nChannelCode) { 198 void switchOn_B(int nAddressCode, int nChannelCode) {
193 sendTriState( getCodeWordB(nAddressCode, nChannelCode, true) ); 199 sendTriState( getCodeWordB(nAddressCode, nChannelCode, true) );
194 } 200 }
195 201
196 202
197 203
199 * Switch a remote switch off (Type B with two rotary/sliding switches) 205 * Switch a remote switch off (Type B with two rotary/sliding switches)
200 * 206 *
201 * @param nAddressCode Number of the switch group (1..4) 207 * @param nAddressCode Number of the switch group (1..4)
202 * @param nChannelCode Number of the switch itself (1..4) 208 * @param nChannelCode Number of the switch itself (1..4)
203 */ 209 */
204 void switchOff(int nAddressCode, int nChannelCode) { 210 void switchOff_B(int nAddressCode, int nChannelCode) {
205 sendTriState( getCodeWordB(nAddressCode, nChannelCode, false) ); 211 sendTriState( getCodeWordB(nAddressCode, nChannelCode, false) );
206 } 212 }
207 213
208 214
209 215
235 * Switch a remote switch on (Type A with 10 pole DIP switches) 241 * Switch a remote switch on (Type A with 10 pole DIP switches)
236 * 242 *
237 * @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111") 243 * @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111")
238 * @param sDevice Code of the switch device (refers to DIP switches 6..10 (A..E) where "1" = on and "0" = off, if all DIP switches are on it's "11111") 244 * @param sDevice Code of the switch device (refers to DIP switches 6..10 (A..E) where "1" = on and "0" = off, if all DIP switches are on it's "11111")
239 */ 245 */
240 /*void RCSwitch::switchOn(char* sGroup, char* sDevice) { 246 void switchOn_A(char* sGroup, char* sDevice) {
241 this->sendTriState( this->getCodeWordA(sGroup, sDevice, true) ); 247 sendTriState( getCodeWordA(sGroup, sDevice, true) );
242 }*/ 248 }
249
250
243 251
244 /** 252 /**
245 * Switch a remote switch off (Type A with 10 pole DIP switches) 253 * Switch a remote switch off (Type A with 10 pole DIP switches)
246 * 254 *
247 * @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111") 255 * @param sGroup Code of the switch group (refers to DIP switches 1..5 where "1" = on and "0" = off, if all DIP switches are on it's "11111")
248 * @param sDevice Code of the switch device (refers to DIP switches 6..10 (A..E) where "1" = on and "0" = off, if all DIP switches are on it's "11111") 256 * @param sDevice Code of the switch device (refers to DIP switches 6..10 (A..E) where "1" = on and "0" = off, if all DIP switches are on it's "11111")
249 */ 257 */
250 /*void RCSwitch::switchOff(char* sGroup, char* sDevice) { 258 void switchOff_A(char* sGroup, char* sDevice) {
251 this->sendTriState( this->getCodeWordA(sGroup, sDevice, false) ); 259 sendTriState( getCodeWordA(sGroup, sDevice, false) );
252 }*/ 260 }
253 261
254 262
255 263
256 /* 264 /*
257 * Returns a char[13], representing the Code Word to be send. 265 * Returns a char[13], representing the Code Word to be send.

mercurial