IRremoteESP8266: src/IRsend.h Source File

IRremoteESP8266

IRsend.h
Go to the documentation of this file.
1 // Copyright 2009 Ken Shirriff
2 // Copyright 2015 Mark Szabo
3 // Copyright 2017 David Conran
4 #ifndef IRSEND_H_
5 #define IRSEND_H_
6
7 #define __STDC_LIMIT_MACROS
8 #include <stdint.h>
9 #include "IRremoteESP8266.h"
10
11 // Originally from https://github.com/shirriff/Arduino-IRremote/
12 // Updated by markszabo (https://github.com/crankyoldgit/IRremoteESP8266) for
13 // sending IR code on ESP8266
14
15 #if TEST || UNIT_TEST
16 #define VIRTUAL virtual
17 #else
18 #define VIRTUAL
19 #endif
20
21 // Constants
22 // Offset (in microseconds) to use in Period time calculations to account for
23 // code excution time in producing the software PWM signal.
24 #if defined(ESP32)
25 // Calculated on a generic ESP-WROOM-32 board with v3.2-18 SDK @ 240MHz
26 const int8_t kPeriodOffset = -2;
27 #elif (defined(ESP8266) && F_CPU == 160000000L) // NOLINT(whitespace/parens)
28 // Calculated on an ESP8266 NodeMCU v2 board using:
29 // v2.6.0 with v2.5.2 ESP core @ 160MHz
30 const int8_t kPeriodOffset = -2;
31 #else // (defined(ESP8266) && F_CPU == 160000000L)
32 // Calculated on ESP8266 Wemos D1 mini using v2.4.1 with v2.4.0 ESP core @ 40MHz
33 const int8_t kPeriodOffset = -5;
34 #endif // (defined(ESP8266) && F_CPU == 160000000L)
35 const uint8_t kDutyDefault = 50; // Percentage
36 const uint8_t kDutyMax = 100; // Percentage
37 // delayMicroseconds() is only accurate to 16383us.
38 // Ref: https://www.arduino.cc/en/Reference/delayMicroseconds
39 const uint16_t kMaxAccurateUsecDelay = 16383;
40 // Usecs to wait between messages we don't know the proper gap time.
41 const uint32_t kDefaultMessageGap = 100000;
42
44 namespace stdAc {
46 enum class opmode_t {
47 kOff = -1,
48 kAuto = 0,
49 kCool = 1,
50 kHeat = 2,
51 kDry = 3,
52 kFan = 4,
53 // Add new entries before this one, and update it to point to the last entry
54 kLastOpmodeEnum = kFan,
55 };
56
58 enum class fanspeed_t {
59 kAuto = 0,
60 kMin = 1,
61 kLow = 2,
62 kMedium = 3,
63 kHigh = 4,
64 kMax = 5,
65 // Add new entries before this one, and update it to point to the last entry
66 kLastFanspeedEnum = kMax,
67 };
68
70 enum class swingv_t {
71 kOff = -1,
72 kAuto = 0,
73 kHighest = 1,
74 kHigh = 2,
75 kMiddle = 3,
76 kLow = 4,
77 kLowest = 5,
78 // Add new entries before this one, and update it to point to the last entry
79 kLastSwingvEnum = kLowest,
80 };
81
83 enum class swingh_t {
84 kOff = -1,
85 kAuto = 0, // a.k.a. On.
86 kLeftMax = 1,
87 kLeft = 2,
88 kMiddle = 3,
89 kRight = 4,
90 kRightMax = 5,
91 kWide = 6, // a.k.a. left & right at the same time.
92 // Add new entries before this one, and update it to point to the last entry
93 kLastSwinghEnum = kWide,
94 };
95
97 typedef struct {
98 decode_type_t protocol;
99 int16_t model;
100 bool power;
101 stdAc::opmode_t mode;
102 float degrees;
103 bool celsius;
104 stdAc::fanspeed_t fanspeed;
105 stdAc::swingv_t swingv;
106 stdAc::swingh_t swingh;
107 bool quiet;
108 bool turbo;
109 bool econo;
110 bool light;
111 bool filter;
112 bool clean;
113 bool beep;
114 int16_t sleep;
115 int16_t clock;
116 } state_t;
117 }; // namespace stdAc
118
120 enum fujitsu_ac_remote_model_t {
121 ARRAH2E = 1,
122 ARDB1,
126 ARREB1E,
127 ARJW2,
129 ARRY4,
130 };
131
133 enum gree_ac_remote_model_t {
134 YAW1F = 1, // (1) Ultimate, EKOKAI, RusClimate (Default)
135 YBOFB, // (2) Green, YBOFB2, YAPOF3
136 };
137
139 enum hitachi_ac1_remote_model_t {
140 R_LT0541_HTA_A = 1, // (1) R-LT0541-HTA Remote in "A" setting. (Default)
141 R_LT0541_HTA_B, // (2) R-LT0541-HTA Remote in "B" setting.
142 };
143
145 enum panasonic_ac_remote_model_t {
146 kPanasonicUnknown = 0,
147 kPanasonicLke = 1,
148 kPanasonicNke = 2,
149 kPanasonicDke = 3, // PKR too.
150 kPanasonicJke = 4,
151 kPanasonicCkp = 5,
152 kPanasonicRkr = 6,
153 };
154
156 enum sharp_ac_remote_model_t {
157 A907 = 1,
158 A705 = 2,
159 A903 = 3, // 820 too
160 };
161
163 enum voltas_ac_remote_model_t {
164 kVoltasUnknown = 0, // Full Function
165 kVoltas122LZF = 1, // (1) 122LZF (No SwingH support) (Default)
166 };
167
169 enum whirlpool_ac_remote_model_t {
170 DG11J13A = 1, // DG11J1-04 too
171 DG11J191,
172 };
173
175 enum lg_ac_remote_model_t {
176 GE6711AR2853M = 1, // (1) LG 28-bit Protocol (default)
177 AKB75215403, // (2) LG2 28-bit Protocol
178 };
179
180
181 // Classes
182
187 class IRsend {
188 public:
189 explicit IRsend(uint16_t IRsendPin, bool inverted = false,
190 bool use_modulation = true);
191 void begin();
192 void enableIROut(uint32_t freq, uint8_t duty = kDutyDefault);
193 VIRTUAL void _delayMicroseconds(uint32_t usec);
194 VIRTUAL uint16_t mark(uint16_t usec);
195 VIRTUAL void space(uint32_t usec);
196 int8_t calibrate(uint16_t hz = 38000U);
197 void sendRaw(const uint16_t buf[], const uint16_t len, const uint16_t hz);
198 void sendData(uint16_t onemark, uint32_t onespace, uint16_t zeromark,
199 uint32_t zerospace, uint64_t data, uint16_t nbits,
200 bool MSBfirst = true);
201 void sendManchesterData(const uint16_t half_period, const uint64_t data,
202 const uint16_t nbits, const bool MSBfirst = true,
203 const bool GEThomas = true);
204 void sendManchester(const uint16_t headermark, const uint32_t headerspace,
205 const uint16_t half_period, const uint16_t footermark,
206 const uint32_t gap, const uint64_t data,
207 const uint16_t nbits, const uint16_t frequency = 38,
208 const bool MSBfirst = true,
209 const uint16_t repeat = kNoRepeat,
210 const uint8_t dutycycle = kDutyDefault,
211 const bool GEThomas = true);
212 void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
213 const uint16_t onemark, const uint32_t onespace,
214 const uint16_t zeromark, const uint32_t zerospace,
215 const uint16_t footermark, const uint32_t gap,
216 const uint64_t data, const uint16_t nbits,
217 const uint16_t frequency, const bool MSBfirst,
218 const uint16_t repeat, const uint8_t dutycycle);
219 void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
220 const uint16_t onemark, const uint32_t onespace,
221 const uint16_t zeromark, const uint32_t zerospace,
222 const uint16_t footermark, const uint32_t gap,
223 const uint32_t mesgtime, const uint64_t data,
224 const uint16_t nbits, const uint16_t frequency,
225 const bool MSBfirst, const uint16_t repeat,
226 const uint8_t dutycycle);
227 void sendGeneric(const uint16_t headermark, const uint32_t headerspace,
228 const uint16_t onemark, const uint32_t onespace,
229 const uint16_t zeromark, const uint32_t zerospace,
230 const uint16_t footermark, const uint32_t gap,
231 const uint8_t *dataptr, const uint16_t nbytes,
232 const uint16_t frequency, const bool MSBfirst,
233 const uint16_t repeat, const uint8_t dutycycle);
234 static uint16_t minRepeats(const decode_type_t protocol);
235 static uint16_t defaultBits(const decode_type_t protocol);
236 bool send(const decode_type_t type, const uint64_t data,
237 const uint16_t nbits, const uint16_t repeat = kNoRepeat);
238 bool send(const decode_type_t type, const uint8_t *state,
239 const uint16_t nbytes);
240 #if (SEND_NEC || SEND_SHERWOOD || SEND_AIWA_RC_T501 || SEND_SANYO || \
241 SEND_MIDEA24)
242 void sendNEC(uint64_t data, uint16_t nbits = kNECBits,
243 uint16_t repeat = kNoRepeat);
244 uint32_t encodeNEC(uint16_t address, uint16_t command);
245 #endif
246 #if SEND_SONY
247 // sendSony() should typically be called with repeat=2 as Sony devices
248 // expect the code to be sent at least 3 times. (code + 2 repeats = 3 codes)
249 // Legacy use of this procedure was to only send a single code so call it with
250 // repeat=0 for backward compatibility. As of v2.0 it defaults to sending
251 // a Sony command that will be accepted be a device.
252 void sendSony(const uint64_t data, const uint16_t nbits = kSony20Bits,
253 const uint16_t repeat = kSonyMinRepeat);
254 void sendSony38(const uint64_t data, const uint16_t nbits = kSony20Bits,
255 const uint16_t repeat = kSonyMinRepeat + 1);
256 uint32_t encodeSony(const uint16_t nbits, const uint16_t command,
257 const uint16_t address, const uint16_t extended = 0);
258 #endif // SEND_SONY
259 #if SEND_SHERWOOD
260 void sendSherwood(uint64_t data, uint16_t nbits = kSherwoodBits,
261 uint16_t repeat = kSherwoodMinRepeat);
262 #endif
263 #if SEND_SAMSUNG
264 void sendSAMSUNG(const uint64_t data, const uint16_t nbits = kSamsungBits,
265 const uint16_t repeat = kNoRepeat);
266 uint32_t encodeSAMSUNG(const uint8_t customer, const uint8_t command);
267 #endif
268 #if SEND_SAMSUNG36
269 void sendSamsung36(const uint64_t data, const uint16_t nbits = kSamsung36Bits,
270 const uint16_t repeat = kNoRepeat);
271 #endif
272 #if SEND_SAMSUNG_AC
273 void sendSamsungAC(const unsigned char data[],
274 const uint16_t nbytes = kSamsungAcStateLength,
275 const uint16_t repeat = kSamsungAcDefaultRepeat);
276 #endif
277 #if SEND_LG
278 void sendLG(uint64_t data, uint16_t nbits = kLgBits,
279 uint16_t repeat = kNoRepeat);
280 void sendLG2(uint64_t data, uint16_t nbits = kLgBits,
281 uint16_t repeat = kNoRepeat);
282 uint32_t encodeLG(uint16_t address, uint16_t command);
283 #endif
284 #if (SEND_SHARP || SEND_DENON)
285 uint32_t encodeSharp(const uint16_t address, const uint16_t command,
286 const uint16_t expansion = 1, const uint16_t check = 0,
287 const bool MSBfirst = false);
288 void sendSharp(const uint16_t address, const uint16_t command,
289 const uint16_t nbits = kSharpBits,
290 const uint16_t repeat = kNoRepeat);
291 void sendSharpRaw(const uint64_t data, const uint16_t nbits = kSharpBits,
292 const uint16_t repeat = kNoRepeat);
293 #endif
294 #if SEND_SHARP_AC
295 void sendSharpAc(const unsigned char data[],
296 const uint16_t nbytes = kSharpAcStateLength,
297 const uint16_t repeat = kSharpAcDefaultRepeat);
298 #endif // SEND_SHARP_AC
299 #if SEND_JVC
300 void sendJVC(uint64_t data, uint16_t nbits = kJvcBits,
301 uint16_t repeat = kNoRepeat);
302 uint16_t encodeJVC(uint8_t address, uint8_t command);
303 #endif
304 #if SEND_DENON
305 void sendDenon(uint64_t data, uint16_t nbits = kDenonBits,
306 uint16_t repeat = kNoRepeat);
307 #endif
308 #if SEND_SANYO
309 uint64_t encodeSanyoLC7461(uint16_t address, uint8_t command);
310 void sendSanyoLC7461(const uint64_t data,
311 const uint16_t nbits = kSanyoLC7461Bits,
312 const uint16_t repeat = kNoRepeat);
313 #endif
314 #if SEND_SANYO_AC
315 void sendSanyoAc(const uint8_t *data,
316 const uint16_t nbytes = kSanyoAcStateLength,
317 const uint16_t repeat = kNoRepeat);
318 #endif // SEND_SANYO_AC
319 #if SEND_DISH
320 // sendDISH() should typically be called with repeat=3 as DISH devices
321 // expect the code to be sent at least 4 times. (code + 3 repeats = 4 codes)
322 // Legacy use of this procedure was only to send a single code
323 // so use repeat=0 for backward compatibility.
324 void sendDISH(uint64_t data, uint16_t nbits = kDishBits,
325 uint16_t repeat = kDishMinRepeat);
326 #endif
327 #if (SEND_PANASONIC || SEND_DENON)
328 void sendPanasonic64(const uint64_t data,
329 const uint16_t nbits = kPanasonicBits,
330 const uint16_t repeat = kNoRepeat);
331 void sendPanasonic(const uint16_t address, const uint32_t data,
332 const uint16_t nbits = kPanasonicBits,
333 const uint16_t repeat = kNoRepeat);
334 uint64_t encodePanasonic(const uint16_t manufacturer, const uint8_t device,
335 const uint8_t subdevice, const uint8_t function);
336 #endif
337 #if SEND_RC5
338 void sendRC5(const uint64_t data, uint16_t nbits = kRC5XBits,
339 const uint16_t repeat = kNoRepeat);
340 uint16_t encodeRC5(const uint8_t address, const uint8_t command,
341 const bool key_released = false);
342 uint16_t encodeRC5X(const uint8_t address, const uint8_t command,
343 const bool key_released = false);
344 uint64_t toggleRC5(const uint64_t data);
345 #endif
346 #if SEND_RC6
347 void sendRC6(const uint64_t data, const uint16_t nbits = kRC6Mode0Bits,
348 const uint16_t repeat = kNoRepeat);
349 uint64_t encodeRC6(const uint32_t address, const uint8_t command,
350 const uint16_t mode = kRC6Mode0Bits);
351 uint64_t toggleRC6(const uint64_t data, const uint16_t nbits = kRC6Mode0Bits);
352 #endif
353 #if SEND_RCMM
354 void sendRCMM(uint64_t data, uint16_t nbits = kRCMMBits,
355 uint16_t repeat = kNoRepeat);
356 #endif
357 #if SEND_COOLIX
358 void sendCOOLIX(uint64_t data, uint16_t nbits = kCoolixBits,
359 uint16_t repeat = kCoolixDefaultRepeat);
360 #endif
361 #if SEND_WHYNTER
362 void sendWhynter(const uint64_t data, const uint16_t nbits = kWhynterBits,
363 const uint16_t repeat = kNoRepeat);
364 #endif
365 #if SEND_MIRAGE
366 void sendMirage(const unsigned char data[],
367 const uint16_t nbytes = kMirageStateLength,
368 const uint16_t repeat = kMirageMinRepeat);
369 #endif // SEND_MIRAGE
370 #if SEND_MITSUBISHI
371 void sendMitsubishi(uint64_t data, uint16_t nbits = kMitsubishiBits,
372 uint16_t repeat = kMitsubishiMinRepeat);
373 #endif
374 #if SEND_MITSUBISHI136
375 void sendMitsubishi136(const unsigned char data[],
376 const uint16_t nbytes = kMitsubishi136StateLength,
377 const uint16_t repeat = kMitsubishi136MinRepeat);
378 #endif
379 #if SEND_MITSUBISHI112
380 void sendMitsubishi112(const unsigned char data[],
381 const uint16_t nbytes = kMitsubishi112StateLength,
382 const uint16_t repeat = kMitsubishi112MinRepeat);
383 #endif
384 #if SEND_MITSUBISHI2
385 void sendMitsubishi2(uint64_t data, uint16_t nbits = kMitsubishiBits,
386 uint16_t repeat = kMitsubishiMinRepeat);
387 #endif
388 #if SEND_MITSUBISHI_AC
389 void sendMitsubishiAC(const unsigned char data[],
390 const uint16_t nbytes = kMitsubishiACStateLength,
391 const uint16_t repeat = kMitsubishiACMinRepeat);
392 #endif
393 #if SEND_MITSUBISHIHEAVY
394 void sendMitsubishiHeavy88(
395 const unsigned char data[],
396 const uint16_t nbytes = kMitsubishiHeavy88StateLength,
397 const uint16_t repeat = kMitsubishiHeavy88MinRepeat);
398 void sendMitsubishiHeavy152(
399 const unsigned char data[],
400 const uint16_t nbytes = kMitsubishiHeavy152StateLength,
401 const uint16_t repeat = kMitsubishiHeavy152MinRepeat);
402 #endif
403 #if SEND_FUJITSU_AC
404 void sendFujitsuAC(const unsigned char data[], const uint16_t nbytes,
405 const uint16_t repeat = kFujitsuAcMinRepeat);
406 #endif
407 #if SEND_INAX
408 void sendInax(const uint64_t data, const uint16_t nbits = kInaxBits,
409 const uint16_t repeat = kInaxMinRepeat);
410 #endif // SEND_INAX
411 #if SEND_GLOBALCACHE
412 void sendGC(uint16_t buf[], uint16_t len);
413 #endif
414 #if SEND_KELVINATOR
415 void sendKelvinator(const unsigned char data[],
416 const uint16_t nbytes = kKelvinatorStateLength,
417 const uint16_t repeat = kKelvinatorDefaultRepeat);
418 #endif
419 #if SEND_DAIKIN
420 void sendDaikin(const unsigned char data[],
421 const uint16_t nbytes = kDaikinStateLength,
422 const uint16_t repeat = kDaikinDefaultRepeat);
423 #endif
424 #if SEND_DAIKIN64
425 void sendDaikin64(const uint64_t data, const uint16_t nbits = kDaikin64Bits,
426 const uint16_t repeat = kDaikin64DefaultRepeat);
427 #endif // SEND_DAIKIN64
428 #if SEND_DAIKIN128
429 void sendDaikin128(const unsigned char data[],
430 const uint16_t nbytes = kDaikin128StateLength,
431 const uint16_t repeat = kDaikin128DefaultRepeat);
432 #endif // SEND_DAIKIN128
433 #if SEND_DAIKIN152
434 void sendDaikin152(const unsigned char data[],
435 const uint16_t nbytes = kDaikin152StateLength,
436 const uint16_t repeat = kDaikin152DefaultRepeat);
437 #endif // SEND_DAIKIN152
438 #if SEND_DAIKIN160
439 void sendDaikin160(const unsigned char data[],
440 const uint16_t nbytes = kDaikin160StateLength,
441 const uint16_t repeat = kDaikin160DefaultRepeat);
442 #endif // SEND_DAIKIN160
443 #if SEND_DAIKIN176
444 void sendDaikin176(const unsigned char data[],
445 const uint16_t nbytes = kDaikin176StateLength,
446 const uint16_t repeat = kDaikin176DefaultRepeat);
447 #endif // SEND_DAIKIN176
448 #if SEND_DAIKIN2
449 void sendDaikin2(const unsigned char data[],
450 const uint16_t nbytes = kDaikin2StateLength,
451 const uint16_t repeat = kDaikin2DefaultRepeat);
452 #endif
453 #if SEND_DAIKIN216
454 void sendDaikin216(const unsigned char data[],
455 const uint16_t nbytes = kDaikin216StateLength,
456 const uint16_t repeat = kDaikin216DefaultRepeat);
457 #endif
458 #if SEND_AIWA_RC_T501
459 void sendAiwaRCT501(uint64_t data, uint16_t nbits = kAiwaRcT501Bits,
460 uint16_t repeat = kAiwaRcT501MinRepeats);
461 #endif
462 #if SEND_GREE
463 void sendGree(const uint64_t data, const uint16_t nbits = kGreeBits,
464 const uint16_t repeat = kGreeDefaultRepeat);
465 void sendGree(const uint8_t data[], const uint16_t nbytes = kGreeStateLength,
466 const uint16_t repeat = kGreeDefaultRepeat);
467 #endif
468 #if SEND_GOODWEATHER
469 void sendGoodweather(const uint64_t data,
470 const uint16_t nbits = kGoodweatherBits,
471 const uint16_t repeat = kGoodweatherMinRepeat);
472 #endif // SEND_GOODWEATHER
473 #if SEND_PRONTO
474 void sendPronto(uint16_t data[], uint16_t len, uint16_t repeat = kNoRepeat);
475 #endif
476 #if SEND_ARGO
477 void sendArgo(const unsigned char data[],
478 const uint16_t nbytes = kArgoStateLength,
479 const uint16_t repeat = kArgoDefaultRepeat);
480 #endif
481 #if SEND_TROTEC
482 void sendTrotec(const unsigned char data[],
483 const uint16_t nbytes = kTrotecStateLength,
484 const uint16_t repeat = kTrotecDefaultRepeat);
485 #endif
486 #if SEND_NIKAI
487 void sendNikai(uint64_t data, uint16_t nbits = kNikaiBits,
488 uint16_t repeat = kNoRepeat);
489 #endif
490 #if SEND_TOSHIBA_AC
491 void sendToshibaAC(const uint8_t data[],
492 const uint16_t nbytes = kToshibaACStateLength,
493 const uint16_t repeat = kToshibaACMinRepeat);
494 #endif
495 #if SEND_MIDEA
496 void sendMidea(uint64_t data, uint16_t nbits = kMideaBits,
497 uint16_t repeat = kMideaMinRepeat);
498 #endif // SEND_MIDEA
499 #if SEND_MIDEA24
500 void sendMidea24(const uint64_t data, const uint16_t nbits = kMidea24Bits,
501 const uint16_t repeat = kMidea24MinRepeat);
502 #endif // SEND_MIDEA24
503 #if SEND_MAGIQUEST
504 void sendMagiQuest(const uint64_t data, const uint16_t nbits = kMagiquestBits,
505 const uint16_t repeat = kNoRepeat);
506 uint64_t encodeMagiQuest(const uint32_t wand_id, const uint16_t magnitude);
507 #endif
508 #if SEND_LASERTAG
509 void sendLasertag(uint64_t data, uint16_t nbits = kLasertagBits,
510 uint16_t repeat = kLasertagMinRepeat);
511 #endif
512 #if SEND_CARRIER_AC
513 void sendCarrierAC(uint64_t data, uint16_t nbits = kCarrierAcBits,
514 uint16_t repeat = kCarrierAcMinRepeat);
515 #endif
516 #if SEND_CARRIER_AC40
517 void sendCarrierAC40(uint64_t data, uint16_t nbits = kCarrierAc40Bits,
518 uint16_t repeat = kCarrierAc40MinRepeat);
519 #endif
520 #if SEND_CARRIER_AC64
521 void sendCarrierAC64(uint64_t data, uint16_t nbits = kCarrierAc64Bits,
522 uint16_t repeat = kCarrierAc64MinRepeat);
523 #endif
524 #if (SEND_HAIER_AC || SEND_HAIER_AC_YRW02)
525 void sendHaierAC(const unsigned char data[],
526 const uint16_t nbytes = kHaierACStateLength,
527 const uint16_t repeat = kHaierAcDefaultRepeat);
528 #endif
529 #if SEND_HAIER_AC_YRW02
530 void sendHaierACYRW02(const unsigned char data[],
531 const uint16_t nbytes = kHaierACYRW02StateLength,
532 const uint16_t repeat = kHaierAcYrw02DefaultRepeat);
533 #endif
534 #if SEND_HITACHI_AC
535 void sendHitachiAC(const unsigned char data[],
536 const uint16_t nbytes = kHitachiAcStateLength,
537 const uint16_t repeat = kHitachiAcDefaultRepeat);
538 #endif
539 #if SEND_HITACHI_AC1
540 void sendHitachiAC1(const unsigned char data[],
541 const uint16_t nbytes = kHitachiAc1StateLength,
542 const uint16_t repeat = kHitachiAcDefaultRepeat);
543 #endif
544 #if SEND_HITACHI_AC2
545 void sendHitachiAC2(const unsigned char data[],
546 const uint16_t nbytes = kHitachiAc2StateLength,
547 const uint16_t repeat = kHitachiAcDefaultRepeat);
548 #endif
549 #if SEND_HITACHI_AC3
550 void sendHitachiAc3(const unsigned char data[],
551 const uint16_t nbytes, // No default as there as so many
552 // different sizes
553 const uint16_t repeat = kHitachiAcDefaultRepeat);
554 #endif // SEND_HITACHI_AC3
555 #if SEND_HITACHI_AC344
556 void sendHitachiAc344(const unsigned char data[],
557 const uint16_t nbytes = kHitachiAc344StateLength,
558 const uint16_t repeat = kHitachiAcDefaultRepeat);
559 #endif // SEND_HITACHI_AC344
560 #if SEND_HITACHI_AC424
561 void sendHitachiAc424(const unsigned char data[],
562 const uint16_t nbytes = kHitachiAc424StateLength,
563 const uint16_t repeat = kHitachiAcDefaultRepeat);
564 #endif // SEND_HITACHI_AC424
565 #if SEND_GICABLE
566 void sendGICable(uint64_t data, uint16_t nbits = kGicableBits,
567 uint16_t repeat = kGicableMinRepeat);
568 #endif
569 #if SEND_WHIRLPOOL_AC
570 void sendWhirlpoolAC(const unsigned char data[],
571 const uint16_t nbytes = kWhirlpoolAcStateLength,
572 const uint16_t repeat = kWhirlpoolAcDefaultRepeat);
573 #endif
574 #if SEND_LUTRON
575 void sendLutron(uint64_t data, uint16_t nbits = kLutronBits,
576 uint16_t repeat = kNoRepeat);
577 #endif
578 #if SEND_ELECTRA_AC
579 void sendElectraAC(const unsigned char data[],
580 const uint16_t nbytes = kElectraAcStateLength,
581 const uint16_t repeat = kNoRepeat);
582 #endif
583 #if SEND_PANASONIC_AC
584 void sendPanasonicAC(const unsigned char data[],
585 const uint16_t nbytes = kPanasonicAcStateLength,
586 const uint16_t repeat = kPanasonicAcDefaultRepeat);
587 #endif // SEND_PANASONIC_AC
588 #if SEND_PANASONIC_AC32
589 void sendPanasonicAC32(const uint64_t data,
590 const uint16_t nbits = kPanasonicAc32Bits,
591 const uint16_t repeat = kPanasonicAcDefaultRepeat);
592 #endif // SEND_PANASONIC_AC32
593 #if SEND_PIONEER
594 void sendPioneer(const uint64_t data, const uint16_t nbits = kPioneerBits,
595 const uint16_t repeat = kNoRepeat);
596 uint64_t encodePioneer(uint16_t address, uint16_t command);
597 #endif
598 #if SEND_MWM
599 void sendMWM(const unsigned char data[], const uint16_t nbytes,
600 const uint16_t repeat = kNoRepeat);
601 #endif
602 #if SEND_VESTEL_AC
603 void sendVestelAc(const uint64_t data, const uint16_t nbits = kVestelAcBits,
604 const uint16_t repeat = kNoRepeat);
605 #endif
606 #if SEND_TCL112AC
607 void sendTcl112Ac(const unsigned char data[],
608 const uint16_t nbytes = kTcl112AcStateLength,
609 const uint16_t repeat = kTcl112AcDefaultRepeat);
610 #endif
611 #if SEND_TECO
612 void sendTeco(const uint64_t data, const uint16_t nbits = kTecoBits,
613 const uint16_t repeat = kNoRepeat);
614 #endif
615 #if SEND_LEGOPF
616 void sendLegoPf(const uint64_t data, const uint16_t nbits = kLegoPfBits,
617 const uint16_t repeat = kLegoPfMinRepeat);
618 #endif
619 #if SEND_NEOCLIMA
620 void sendNeoclima(const unsigned char data[],
621 const uint16_t nbytes = kNeoclimaStateLength,
622 const uint16_t repeat = kNeoclimaMinRepeat);
623 #endif // SEND_NEOCLIMA
624 #if SEND_AMCOR
625 void sendAmcor(const unsigned char data[],
626 const uint16_t nbytes = kAmcorStateLength,
627 const uint16_t repeat = kAmcorDefaultRepeat);
628 #endif // SEND_AMCOR
629 #if SEND_EPSON
630 void sendEpson(uint64_t data, uint16_t nbits = kEpsonBits,
631 uint16_t repeat = kEpsonMinRepeat);
632 #endif
633 #if SEND_SYMPHONY
634 void sendSymphony(uint64_t data, uint16_t nbits = kSymphonyBits,
635 uint16_t repeat = kSymphonyDefaultRepeat);
636 #endif
637 #if SEND_AIRWELL
638 void sendAirwell(uint64_t data, uint16_t nbits = kAirwellBits,
639 uint16_t repeat = kAirwellMinRepeats);
640 #endif
641 #if SEND_DELONGHI_AC
642 void sendDelonghiAc(uint64_t data, uint16_t nbits = kDelonghiAcBits,
643 uint16_t repeat = kDelonghiAcDefaultRepeat);
644 #endif
645 #if SEND_DOSHISHA
646 void sendDoshisha(const uint64_t data, uint16_t nbits = kDoshishaBits,
647 const uint16_t repeat = kNoRepeat);
648 uint64_t encodeDoshisha(const uint8_t command, const uint8_t channel = 0);
649 #endif // SEND_DOSHISHA
650 #if SEND_MULTIBRACKETS
651 void sendMultibrackets(const uint64_t data,
652 const uint16_t nbits = kMultibracketsBits,
653 const uint16_t repeat = kMultibracketsDefaultRepeat);
654 #endif
655 #if SEND_TECHNIBEL_AC
656 void sendTechnibelAc(uint64_t data, uint16_t nbits = kTechnibelAcBits,
657 uint16_t repeat = kTechnibelAcDefaultRepeat);
658 #endif
659 #if SEND_CORONA_AC
660 void sendCoronaAc(const uint8_t data[],
661 const uint16_t nbytes = kCoronaAcStateLength,
662 const uint16_t repeat = kNoRepeat);
663 #endif // SEND_CORONA_AC
664 #if SEND_ZEPEAL
665 void sendZepeal(const uint64_t data,
666 const uint16_t nbits = kZepealBits,
667 const uint16_t repeat = kZepealMinRepeat);
668 #endif // SEND_ZEPEAL
669 #if SEND_VOLTAS
670 void sendVoltas(const unsigned char data[],
671 const uint16_t nbytes = kVoltasStateLength,
672 const uint16_t repeat = kNoRepeat);
673 #endif // SEND_VOLTAS
674 #if SEND_METZ
675 void sendMetz(const uint64_t data,
676 const uint16_t nbits = kMetzBits,
677 const uint16_t repeat = kMetzMinRepeat);
678 static uint32_t encodeMetz(const uint8_t address, const uint8_t command,
679 const bool toggle = false);
680 #endif // SEND_METZ
681 #if SEND_TRANSCOLD
682 void sendTranscold(const uint64_t data, const uint16_t nbits = kTranscoldBits,
683 const uint16_t repeat = kTranscoldDefaultRepeat);
684 #endif // SEND_TRANSCOLD
685 #if SEND_ELITESCREENS
686 void sendElitescreens(const uint64_t data,
687 const uint16_t nbits = kEliteScreensBits,
688 const uint16_t repeat = kEliteScreensDefaultRepeat);
689 #endif // SEND_ELITESCREENS
690 #if SEND_MILESTAG2
691 // Since There 2 types of transmissions
692 // (14bits for Shooting by default, you can set 24 bit for msg delivery)
693 void sendMilestag2(const uint64_t data,
694 const uint16_t nbits = kMilesTag2ShotBits,
695 const uint16_t repeat = kMilesMinRepeat);
696 #endif // SEND_MILESTAG2
697 #if SEND_ECOCLIM
698 void sendEcoclim(const uint64_t data, const uint16_t nbits = kEcoclimBits,
699 const uint16_t repeat = kNoRepeat);
700 #endif // SEND_ECOCLIM
701
702 protected:
703 #ifdef UNIT_TEST
704 #ifndef HIGH
705 #define HIGH 0x1
706 #endif
707 #ifndef LOW
708 #define LOW 0x0
709 #endif
710 #endif // UNIT_TEST
711 uint8_t outputOn;
712 uint8_t outputOff;
713 VIRTUAL void ledOff();
714 VIRTUAL void ledOn();
715 #ifndef UNIT_TEST
716
717 private:
718 #else
719 uint32_t _freq_unittest;
720 #endif // UNIT_TEST
721 uint16_t onTimePeriod;
722 uint16_t offTimePeriod;
723 uint16_t IRpin;
724 int8_t periodOffset;
725 uint8_t _dutycycle;
726 bool modulation;
727 uint32_t calcUSecPeriod(uint32_t hz, bool use_offset = true);
728 #if SEND_SONY
729 void _sendSony(const uint64_t data, const uint16_t nbits,
730 const uint16_t repeat, const uint16_t freq);
731 #endif // SEND_SONY
732 };
733
734 #endif // IRSEND_H_
IRsend::calcUSecPeriod
uint32_t calcUSecPeriod(uint32_t hz, bool use_offset=true)
Calculate the period for a given frequency.
Definition: IRsend.cpp:71
kDaikin152DefaultRepeat
const uint16_t kDaikin152DefaultRepeat
Definition: IRremoteESP8266.h:935
IRsend::sendZepeal
void sendZepeal(const uint64_t data, const uint16_t nbits=kZepealBits, const uint16_t repeat=kZepealMinRepeat)
Send a Zepeal formatted message. Status: STABLE / Works on real device.
Definition: ir_Zepeal.cpp:47
kDelonghiAcBits
const uint16_t kDelonghiAcBits
Definition: IRremoteESP8266.h:942
IRsend::sendHaierACYRW02
void sendHaierACYRW02(const unsigned char data[], const uint16_t nbytes=kHaierACYRW02StateLength, const uint16_t repeat=kHaierAcYrw02DefaultRepeat)
Send a Haier YR-W02 remote A/C formatted message. Status: Alpha / Untested on a real device.
Definition: ir_Haier.cpp:74
kHaierAcYrw02DefaultRepeat
const uint16_t kHaierAcYrw02DefaultRepeat
Definition: IRremoteESP8266.h:978
IRsend::sendPronto
void sendPronto(uint16_t data[], uint16_t len, uint16_t repeat=kNoRepeat)
Send a Pronto Code formatted message. Status: STABLE / Known working.
Definition: ir_Pronto.cpp:56
IRsend::outputOff
uint8_t outputOff
Definition: IRsend.h:712
IRsend::periodOffset
int8_t periodOffset
Definition: IRsend.h:724
kMitsubishiACStateLength
const uint16_t kMitsubishiACStateLength
Definition: IRremoteESP8266.h:1022
kMitsubishiHeavy152StateLength
const uint16_t kMitsubishiHeavy152StateLength
Definition: IRremoteESP8266.h:1034
kAirwellMinRepeats
const uint16_t kAirwellMinRepeats
Definition: IRremoteESP8266.h:895
kMideaMinRepeat
const uint16_t kMideaMinRepeat
Definition: IRremoteESP8266.h:1012
kMilesMinRepeat
const uint16_t kMilesMinRepeat
Definition: IRremoteESP8266.h:1117
stdAc::state_t::clock
int16_t clock
Definition: IRsend.h:115
kGicableBits
const uint16_t kGicableBits
Definition: IRremoteESP8266.h:966
kGreeStateLength
const uint16_t kGreeStateLength
Definition: IRremoteESP8266.h:970
IRsend::encodeNEC
uint32_t encodeNEC(uint16_t address, uint16_t command)
Calculate the raw NEC data based on address and command. Status: STABLE / Expected to work.
Definition: ir_NEC.cpp:48
decode_type_t
decode_type_t
Enumerator for defining and numbering of supported IR protocol.
Definition: IRremoteESP8266.h:785
IRsend::encodeDoshisha
uint64_t encodeDoshisha(const uint8_t command, const uint8_t channel=0)
Encode Doshisha combining constant values with command and channel. Status: STABLE / Working.
Definition: ir_Doshisha.cpp:67
kCarrierAcBits
const uint16_t kCarrierAcBits
Definition: IRremoteESP8266.h:907
stdAc::swingv_t::kLow
@ kLow
IRsend::sendHitachiAc344
void sendHitachiAc344(const unsigned char data[], const uint16_t nbytes=kHitachiAc344StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi A/C 43-byte/344-bit message. (HITACHI_AC344) Basically the same as sendHitatchiAC() ex...
Definition: ir_Hitachi.cpp:121
kDaikin2DefaultRepeat
const uint16_t kDaikin2DefaultRepeat
Definition: IRremoteESP8266.h:924
kVoltasUnknown
@ kVoltasUnknown
Definition: IRsend.h:164
kMultibracketsBits
const uint16_t kMultibracketsBits
Definition: IRremoteESP8266.h:1037
kWhynterBits
const uint16_t kWhynterBits
Definition: IRremoteESP8266.h:1109
stdAc::opmode_t::kAuto
@ kAuto
kAirwellBits
const uint16_t kAirwellBits
Definition: IRremoteESP8266.h:894
kHaierAcDefaultRepeat
const uint16_t kHaierAcDefaultRepeat
Definition: IRremoteESP8266.h:975
IRsend::sendMidea
void sendMidea(uint64_t data, uint16_t nbits=kMideaBits, uint16_t repeat=kMideaMinRepeat)
Send a Midea message Status: Alpha / Needs testing against a real device.
Definition: ir_Midea.cpp:53
kTrotecDefaultRepeat
const uint16_t kTrotecDefaultRepeat
Definition: IRremoteESP8266.h:1105
kFujitsuAcMinRepeat
const uint16_t kFujitsuAcMinRepeat
Definition: IRremoteESP8266.h:961
IRsend::sendLG
void sendLG(uint64_t data, uint16_t nbits=kLgBits, uint16_t repeat=kNoRepeat)
Send an LG formatted message. (LG) Status: Beta / Should be working.
Definition: ir_LG.cpp:54
kPanasonicRkr
@ kPanasonicRkr
Definition: IRsend.h:152
kMitsubishi136MinRepeat
const uint16_t kMitsubishi136MinRepeat
Definition: IRremoteESP8266.h:1027
stdAc::swingv_t
swingv_t
Common A/C settings for Vertical Swing.
Definition: IRsend.h:70
IRsend::_delayMicroseconds
VIRTUAL void _delayMicroseconds(uint32_t usec)
An ESP8266 RTOS watch-dog timer friendly version of delayMicroseconds().
Definition: IRsend.cpp:114
stdAc::state_t::clean
bool clean
Definition: IRsend.h:112
IRsend::sendLegoPf
void sendLegoPf(const uint64_t data, const uint16_t nbits=kLegoPfBits, const uint16_t repeat=kLegoPfMinRepeat)
Send a LEGO Power Functions message. Status: Beta / Should work.
Definition: ir_Lego.cpp:33
kTechnibelAcBits
const uint16_t kTechnibelAcBits
Definition: IRremoteESP8266.h:944
kArgoDefaultRepeat
const uint16_t kArgoDefaultRepeat
Definition: IRremoteESP8266.h:904
IRsend::outputOn
uint8_t outputOn
Definition: IRsend.h:711
kHaierACStateLength
const uint16_t kHaierACStateLength
Definition: IRremoteESP8266.h:973
kHitachiAcStateLength
const uint16_t kHitachiAcStateLength
Definition: IRremoteESP8266.h:979
stdAc::swingh_t::kLeft
@ kLeft
kDaikin176StateLength
const uint16_t kDaikin176StateLength
Definition: IRremoteESP8266.h:936
kRC5XBits
const uint16_t kRC5XBits
Definition: IRremoteESP8266.h:1056
kEpsonMinRepeat
const uint16_t kEpsonMinRepeat
Definition: IRremoteESP8266.h:955
kAmcorStateLength
const uint16_t kAmcorStateLength
Definition: IRremoteESP8266.h:899
IRsend::send
bool send(const decode_type_t type, const uint64_t data, const uint16_t nbits, const uint16_t repeat=kNoRepeat)
Send a simple (up to 64 bits) IR message of a given type. An unknown/unsupported type will send nothi...
Definition: IRsend.cpp:765
stdAc::fanspeed_t
fanspeed_t
Common A/C settings for Fan Speeds.
Definition: IRsend.h:58
R_LT0541_HTA_B
@ R_LT0541_HTA_B
Definition: IRsend.h:141
IRsend::sendWhynter
void sendWhynter(const uint64_t data, const uint16_t nbits=kWhynterBits, const uint16_t repeat=kNoRepeat)
Send a Whynter message. Status: STABLE.
Definition: ir_Whynter.cpp:45
whirlpool_ac_remote_model_t
whirlpool_ac_remote_model_t
Whirlpool A/C model numbers.
Definition: IRsend.h:169
IRsend::sendMitsubishiAC
void sendMitsubishiAC(const unsigned char data[], const uint16_t nbytes=kMitsubishiACStateLength, const uint16_t repeat=kMitsubishiACMinRepeat)
Send a Mitsubishi 144-bit A/C formatted message. (MITSUBISHI_AC) Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:236
IRsend::sendNikai
void sendNikai(uint64_t data, uint16_t nbits=kNikaiBits, uint16_t repeat=kNoRepeat)
Send a Nikai formatted message. Status: STABLE / Working.
Definition: ir_Nikai.cpp:37
kDefaultMessageGap
const uint32_t kDefaultMessageGap
Definition: IRsend.h:41
kMaxAccurateUsecDelay
const uint16_t kMaxAccurateUsecDelay
Definition: IRsend.h:39
IRsend::encodeJVC
uint16_t encodeJVC(uint8_t address, uint8_t command)
Calculate the raw JVC data based on address and command. Status: STABLE / Works fine.
Definition: ir_JVC.cpp:78
IRsend::onTimePeriod
uint16_t onTimePeriod
Definition: IRsend.h:721
IRsend::sendAiwaRCT501
void sendAiwaRCT501(uint64_t data, uint16_t nbits=kAiwaRcT501Bits, uint16_t repeat=kAiwaRcT501MinRepeats)
Send an Aiwa RC T501 formatted message. Status: BETA / Should work.
Definition: ir_Aiwa.cpp:30
IRsend::IRpin
uint16_t IRpin
Definition: IRsend.h:723
kHitachiAc1StateLength
const uint16_t kHitachiAc1StateLength
Definition: IRremoteESP8266.h:982
kCoolixBits
const uint16_t kCoolixBits
Definition: IRremoteESP8266.h:905
kMitsubishi112MinRepeat
const uint16_t kMitsubishi112MinRepeat
Definition: IRremoteESP8266.h:1030
kMirageStateLength
const uint16_t kMirageStateLength
Definition: IRremoteESP8266.h:1015
IRsend::sendSymphony
void sendSymphony(uint64_t data, uint16_t nbits=kSymphonyBits, uint16_t repeat=kSymphonyDefaultRepeat)
Send a Symphony packet. Status: STABLE / Should be working.
Definition: ir_Symphony.cpp:42
IRsend::sendMetz
void sendMetz(const uint64_t data, const uint16_t nbits=kMetzBits, const uint16_t repeat=kMetzMinRepeat)
Send a Metz formatted message. Status: Beta / Needs testing against a real device.
Definition: ir_Metz.cpp:32
IRsend::sendGeneric
void sendGeneric(const uint16_t headermark, const uint32_t headerspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t gap, const uint64_t data, const uint16_t nbits, const uint16_t frequency, const bool MSBfirst, const uint16_t repeat, const uint8_t dutycycle)
Generic method for sending simple protocol messages. Will send leading or trailing 0's if the nbits i...
Definition: IRsend.cpp:307
stdAc::fanspeed_t::kHigh
@ kHigh
kSamsung36Bits
const uint16_t kSamsung36Bits
Definition: IRremoteESP8266.h:1061
kMagiquestBits
const uint16_t kMagiquestBits
Definition: IRremoteESP8266.h:1008
IRsend::minRepeats
static uint16_t minRepeats(const decode_type_t protocol)
Get the minimum number of repeats for a given protocol.
Definition: IRsend.cpp:557
kNeoclimaStateLength
const uint16_t kNeoclimaStateLength
Definition: IRremoteESP8266.h:1041
gree_ac_remote_model_t
gree_ac_remote_model_t
Gree A/C model numbers.
Definition: IRsend.h:133
kSamsungAcDefaultRepeat
const uint16_t kSamsungAcDefaultRepeat
Definition: IRremoteESP8266.h:1066
kSanyoLC7461Bits
const uint16_t kSanyoLC7461Bits
Definition: IRremoteESP8266.h:1072
stdAc::state_t::degrees
float degrees
Definition: IRsend.h:102
kMirageMinRepeat
const uint16_t kMirageMinRepeat
Definition: IRremoteESP8266.h:1017
IRsend::_dutycycle
uint8_t _dutycycle
Definition: IRsend.h:725
stdAc::state_t::celsius
bool celsius
Definition: IRsend.h:103
IRsend::sendLG2
void sendLG2(uint64_t data, uint16_t nbits=kLgBits, uint16_t repeat=kNoRepeat)
Send an LG Variant-2 formatted message. (LG2) Status: Beta / Should be working.
Definition: ir_LG.cpp:88
kZepealMinRepeat
const uint16_t kZepealMinRepeat
Definition: IRremoteESP8266.h:1112
IRsend::mark
VIRTUAL uint16_t mark(uint16_t usec)
Modulate the IR LED for the given period (usec) and at the duty cycle set.
Definition: IRsend.cpp:157
IRsend::sendToshibaAC
void sendToshibaAC(const uint8_t data[], const uint16_t nbytes=kToshibaACStateLength, const uint16_t repeat=kToshibaACMinRepeat)
Send a Toshiba A/C message. Status: STABLE / Working.
Definition: ir_Toshiba.cpp:47
ARRY4
@ ARRY4
(5) AR-RY4 (Same as AR-RAH2E but with clean & filter)
Definition: IRsend.h:129
ARDB1
@ ARDB1
(2) AR-DB1, AR-DL10 (AR-DL10 swing doesn't work)
Definition: IRsend.h:125
kTranscoldDefaultRepeat
const uint16_t kTranscoldDefaultRepeat
Definition: IRremoteESP8266.h:1102
kMetzMinRepeat
const uint16_t kMetzMinRepeat
Definition: IRremoteESP8266.h:1010
stdAc::fanspeed_t::kMax
@ kMax
IRsend::sendDaikin152
void sendDaikin152(const unsigned char data[], const uint16_t nbytes=kDaikin152StateLength, const uint16_t repeat=kDaikin152DefaultRepeat)
Send a Daikin152 (152-bit) A/C formatted message. Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:3061
kEliteScreensBits
const uint16_t kEliteScreensBits
Definition: IRremoteESP8266.h:959
IRsend::sendAmcor
void sendAmcor(const unsigned char data[], const uint16_t nbytes=kAmcorStateLength, const uint16_t repeat=kAmcorDefaultRepeat)
Send a Amcor HVAC formatted message. Status: STABLE / Reported as working.
Definition: ir_Amcor.cpp:38
stdAc::state_t::swingv
stdAc::swingv_t swingv
Definition: IRsend.h:105
IRsend::sendLasertag
void sendLasertag(uint64_t data, uint16_t nbits=kLasertagBits, uint16_t repeat=kLasertagMinRepeat)
Send a Lasertag packet/message. Status: STABLE / Working.
Definition: ir_Lasertag.cpp:33
hitachi_ac1_remote_model_t
hitachi_ac1_remote_model_t
HITACHI_AC1 A/C model numbers.
Definition: IRsend.h:139
IRsend::sendEpson
void sendEpson(uint64_t data, uint16_t nbits=kEpsonBits, uint16_t repeat=kEpsonMinRepeat)
Send an Epson formatted message. Status: Beta / Probably works.
Definition: ir_Epson.cpp:24
IRsend
Class for sending all basic IR protocols.
Definition: IRsend.h:187
IRsend::sendManchesterData
void sendManchesterData(const uint16_t half_period, const uint64_t data, const uint16_t nbits, const bool MSBfirst=true, const bool GEThomas=true)
Generic method for sending Manchester code data. Will send leading or trailing 0's if the nbits is la...
Definition: IRsend.cpp:445
kAiwaRcT501MinRepeats
const uint16_t kAiwaRcT501MinRepeats
Definition: IRremoteESP8266.h:897
IRsend::calibrate
int8_t calibrate(uint16_t hz=38000U)
Calculate & set any offsets to account for execution times during sending.
Definition: IRsend.cpp:207
kVoltasStateLength
const uint16_t kVoltasStateLength
Definition: IRremoteESP8266.h:1114
stdAc::fanspeed_t::kMin
@ kMin
kMitsubishiMinRepeat
const uint16_t kMitsubishiMinRepeat
Definition: IRremoteESP8266.h:1021
IRsend::encodeSanyoLC7461
uint64_t encodeSanyoLC7461(uint16_t address, uint8_t command)
Construct a Sanyo LC7461 message.
Definition: ir_Sanyo.cpp:80
ARJW2
@ ARJW2
(4) AR-JW2 (Same as ARDB1 but with horiz control)
Definition: IRsend.h:128
kArgoStateLength
const uint16_t kArgoStateLength
Definition: IRremoteESP8266.h:902
stdAc::swingh_t::kRightMax
@ kRightMax
IRsend::encodeSAMSUNG
uint32_t encodeSAMSUNG(const uint8_t customer, const uint8_t command)
Construct a raw Samsung message from the supplied customer(address) & command. Status: STABLE / Shoul...
Definition: ir_Samsung.cpp:95
kPanasonicBits
const uint16_t kPanasonicBits
Definition: IRremoteESP8266.h:1044
stdAc::state_t::model
int16_t model
Definition: IRsend.h:99
IRsend::toggleRC6
uint64_t toggleRC6(const uint64_t data, const uint16_t nbits=kRC6Mode0Bits)
Flip the toggle bit of a Philips RC-6 data message. Used to indicate a change of remote button's stat...
Definition: ir_RC5_RC6.cpp:157
IRsend::sendSony
void sendSony(const uint64_t data, const uint16_t nbits=kSony20Bits, const uint16_t repeat=kSonyMinRepeat)
Send a standard Sony/SIRC(Serial Infra-Red Control) message. (40kHz) Status: STABLE / Known working.
Definition: ir_Sony.cpp:46
kDutyMax
const uint8_t kDutyMax
Definition: IRsend.h:36
kMilesTag2ShotBits
const uint16_t kMilesTag2ShotBits
Definition: IRremoteESP8266.h:1115
IRsend::_freq_unittest
uint32_t _freq_unittest
Definition: IRsend.h:719
kDaikin152StateLength
const uint16_t kDaikin152StateLength
Definition: IRremoteESP8266.h:933
IRsend::encodeLG
uint32_t encodeLG(uint16_t address, uint16_t command)
Construct a raw 28-bit LG message code from the supplied address & command. Status: STABLE / Works.
Definition: ir_LG.cpp:116
IRsend::sendRaw
void sendRaw(const uint16_t buf[], const uint16_t len, const uint16_t hz)
Send a raw IRremote message.
Definition: IRsend.cpp:539
IRsend::sendMultibrackets
void sendMultibrackets(const uint64_t data, const uint16_t nbits=kMultibracketsBits, const uint16_t repeat=kMultibracketsDefaultRepeat)
Send a Multibrackets formatted message. Status: BETA / Appears to be working.
Definition: ir_Multibrackets.cpp:26
stdAc::swingv_t::kHigh
@ kHigh
kHaierACYRW02StateLength
const uint16_t kHaierACYRW02StateLength
Definition: IRremoteESP8266.h:976
IRsend::encodeRC6
uint64_t encodeRC6(const uint32_t address, const uint8_t command, const uint16_t mode=kRC6Mode0Bits)
Encode a Philips RC-6 data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:171
kMultibracketsDefaultRepeat
const uint16_t kMultibracketsDefaultRepeat
Definition: IRremoteESP8266.h:1038
IRsend::sendMitsubishi112
void sendMitsubishi112(const unsigned char data[], const uint16_t nbytes=kMitsubishi112StateLength, const uint16_t repeat=kMitsubishi112MinRepeat)
Send a Mitsubishi 112-bit A/C formatted message. (MITSUBISHI112) Status: Stable / Reported as working...
Definition: ir_Mitsubishi.cpp:1211
A705
@ A705
Definition: IRsend.h:158
kPanasonicCkp
@ kPanasonicCkp
Definition: IRsend.h:151
IRsend::sendWhirlpoolAC
void sendWhirlpoolAC(const unsigned char data[], const uint16_t nbytes=kWhirlpoolAcStateLength, const uint16_t repeat=kWhirlpoolAcDefaultRepeat)
Send a Whirlpool A/C message. Status: BETA / Probably works.
Definition: ir_Whirlpool.cpp:50
stdAc::fanspeed_t::kLastFanspeedEnum
@ kLastFanspeedEnum
IRsend::sendData
void sendData(uint16_t onemark, uint32_t onespace, uint16_t zeromark, uint32_t zerospace, uint64_t data, uint16_t nbits, bool MSBfirst=true)
Generic method for sending data that is common to most protocols. Will send leading or trailing 0's i...
Definition: IRsend.cpp:246
kGoodweatherBits
const uint16_t kGoodweatherBits
Definition: IRremoteESP8266.h:968
IRsend::sendKelvinator
void sendKelvinator(const unsigned char data[], const uint16_t nbytes=kKelvinatorStateLength, const uint16_t repeat=kKelvinatorDefaultRepeat)
Send a Kelvinator A/C message. Status: STABLE / Known working.
Definition: ir_Kelvinator.cpp:63
IRsend::ledOn
VIRTUAL void ledOn()
Turn on the IR LED.
Definition: IRsend.cpp:60
kGicableMinRepeat
const uint16_t kGicableMinRepeat
Definition: IRremoteESP8266.h:967
IRsend::sendHitachiAC1
void sendHitachiAC1(const unsigned char data[], const uint16_t nbytes=kHitachiAc1StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 13 byte/224-bit A/C formatted message. (HITACHI_AC1) Status: STABLE / Confirmed Workin...
Definition: ir_Hitachi.cpp:87
kDaikin216StateLength
const uint16_t kDaikin216StateLength
Definition: IRremoteESP8266.h:939
IRsend::sendGICable
void sendGICable(uint64_t data, uint16_t nbits=kGicableBits, uint16_t repeat=kGicableMinRepeat)
Send a raw G.I. Cable formatted message. Status: Alpha / Untested.
Definition: ir_GICable.cpp:37
kSamsungAcStateLength
const uint16_t kSamsungAcStateLength
Definition: IRremoteESP8266.h:1062
DG11J13A
@ DG11J13A
Definition: IRsend.h:170
IRsend::sendSharp
void sendSharp(const uint16_t address, const uint16_t command, const uint16_t nbits=kSharpBits, const uint16_t repeat=kNoRepeat)
Send a Sharp message Status: DEPRECATED / Previously working fine.
Definition: ir_Sharp.cpp:133
panasonic_ac_remote_model_t
panasonic_ac_remote_model_t
Panasonic A/C model numbers.
Definition: IRsend.h:145
IRremoteESP8266.h
stdAc::swingh_t
swingh_t
Common A/C settings for Horizontal Swing.
Definition: IRsend.h:83
stdAc::opmode_t::kHeat
@ kHeat
AKB75215403
@ AKB75215403
Definition: IRsend.h:177
IRsend::sendDenon
void sendDenon(uint64_t data, uint16_t nbits=kDenonBits, uint16_t repeat=kNoRepeat)
Send a Denon formatted message. Status: STABLE / Should be working.
Definition: ir_Denon.cpp:48
IRsend::sendCarrierAC64
void sendCarrierAC64(uint64_t data, uint16_t nbits=kCarrierAc64Bits, uint16_t repeat=kCarrierAc64MinRepeat)
Send a Carrier 64bit HVAC formatted message. Status: STABLE / Known to be working.
Definition: ir_Carrier.cpp:176
IRsend::sendPioneer
void sendPioneer(const uint64_t data, const uint16_t nbits=kPioneerBits, const uint16_t repeat=kNoRepeat)
Send a raw Pioneer formatted message. Status: STABLE / Expected to be working.
Definition: ir_Pioneer.cpp:42
YAW1F
@ YAW1F
Definition: IRsend.h:134
kSymphonyBits
const uint16_t kSymphonyBits
Definition: IRremoteESP8266.h:1087
stdAc::swingh_t::kAuto
@ kAuto
kDaikin128StateLength
const uint16_t kDaikin128StateLength
Definition: IRremoteESP8266.h:930
kRC6Mode0Bits
const uint16_t kRC6Mode0Bits
Definition: IRremoteESP8266.h:1057
kDaikin176DefaultRepeat
const uint16_t kDaikin176DefaultRepeat
Definition: IRremoteESP8266.h:938
IRsend::sendPanasonic64
void sendPanasonic64(const uint64_t data, const uint16_t nbits=kPanasonicBits, const uint16_t repeat=kNoRepeat)
Send a Panasonic formatted message. Status: STABLE / Should be working.
Definition: ir_Panasonic.cpp:72
kMitsubishiHeavy152MinRepeat
const uint16_t kMitsubishiHeavy152MinRepeat
Definition: IRremoteESP8266.h:1036
IRsend::sendHaierAC
void sendHaierAC(const unsigned char data[], const uint16_t nbytes=kHaierACStateLength, const uint16_t repeat=kHaierAcDefaultRepeat)
Send a Haier A/C formatted message. (HSU07-HEA03 remote) Status: STABLE / Known to be working.
Definition: ir_Haier.cpp:51
IRsend::sendSamsung36
void sendSamsung36(const uint64_t data, const uint16_t nbits=kSamsung36Bits, const uint16_t repeat=kNoRepeat)
Send a Samsung 36-bit formatted message. Status: STABLE / Works on real devices.
Definition: ir_Samsung.cpp:160
IRsend::sendVoltas
void sendVoltas(const unsigned char data[], const uint16_t nbytes=kVoltasStateLength, const uint16_t repeat=kNoRepeat)
Send a Voltas formatted message. Status: STABLE / Working on real device.
Definition: ir_Voltas.cpp:41
kNoRepeat
const uint16_t kNoRepeat
Definition: IRremoteESP8266.h:891
IRsend::offTimePeriod
uint16_t offTimePeriod
Definition: IRsend.h:722
kSony20Bits
const uint16_t kSony20Bits
Definition: IRremoteESP8266.h:1084
kMitsubishiACMinRepeat
const uint16_t kMitsubishiACMinRepeat
Definition: IRremoteESP8266.h:1024
kMetzBits
const uint16_t kMetzBits
Definition: IRremoteESP8266.h:1009
IRsend::sendSony38
void sendSony38(const uint64_t data, const uint16_t nbits=kSony20Bits, const uint16_t repeat=kSonyMinRepeat+1)
Send an alternative 38kHz Sony/SIRC(Serial Infra-Red Control) message. Status: STABLE / Known working...
Definition: ir_Sony.cpp:62
IRsend::encodeSony
uint32_t encodeSony(const uint16_t nbits, const uint16_t command, const uint16_t address, const uint16_t extended=0)
Convert Sony/SIRC command, address, & extended bits into sendSony format. Status: STABLE / Should be ...
Definition: ir_Sony.cpp:88
stdAc::swingv_t::kAuto
@ kAuto
kPanasonicUnknown
@ kPanasonicUnknown
Definition: IRsend.h:146
fujitsu_ac_remote_model_t
fujitsu_ac_remote_model_t
Fujitsu A/C model numbers.
Definition: IRsend.h:120
kPanasonicAcDefaultRepeat
const uint16_t kPanasonicAcDefaultRepeat
Definition: IRremoteESP8266.h:1050
kSymphonyDefaultRepeat
const uint16_t kSymphonyDefaultRepeat
Definition: IRremoteESP8266.h:1088
ARREB1E
@ ARREB1E
(3) AR-REB1E, AR-RAH1U (Similar to ARRAH2E but no horiz control)
Definition: IRsend.h:126
IRsend::sendPanasonicAC
void sendPanasonicAC(const unsigned char data[], const uint16_t nbytes=kPanasonicAcStateLength, const uint16_t repeat=kPanasonicAcDefaultRepeat)
Send a Panasonic A/C message. Status: STABLE / Work with real device(s).
Definition: ir_Panasonic.cpp:171
stdAc::state_t::swingh
stdAc::swingh_t swingh
Definition: IRsend.h:106
kCoolixDefaultRepeat
const uint16_t kCoolixDefaultRepeat
Definition: IRremoteESP8266.h:906
kPanasonicNke
@ kPanasonicNke
Definition: IRsend.h:148
GE6711AR2853M
@ GE6711AR2853M
Definition: IRsend.h:176
IRsend::sendHitachiAc3
void sendHitachiAc3(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi(3) A/C formatted message. (HITACHI_AC3) Status: STABLE / Working fine.
Definition: ir_Hitachi.cpp:1333
kTcl112AcDefaultRepeat
const uint16_t kTcl112AcDefaultRepeat
Definition: IRremoteESP8266.h:1091
kDelonghiAcDefaultRepeat
const uint16_t kDelonghiAcDefaultRepeat
Definition: IRremoteESP8266.h:943
IRsend::sendSanyoAc
void sendSanyoAc(const uint8_t *data, const uint16_t nbytes=kSanyoAcStateLength, const uint16_t repeat=kNoRepeat)
Send a SanyoAc formatted message. Status: STABLE / Reported as working.
Definition: ir_Sanyo.cpp:252
kCoronaAcStateLength
const uint16_t kCoronaAcStateLength
Definition: IRremoteESP8266.h:914
IRsend::sendRC5
void sendRC5(const uint64_t data, uint16_t nbits=kRC5XBits, const uint16_t repeat=kNoRepeat)
Send a Philips RC-5/RC-5X packet. Status: RC-5 (stable), RC-5X (alpha)
Definition: ir_RC5_RC6.cpp:61
IRsend::sendMitsubishi
void sendMitsubishi(uint64_t data, uint16_t nbits=kMitsubishiBits, uint16_t repeat=kMitsubishiMinRepeat)
Send the supplied Mitsubishi 16-bit message. Status: STABLE / Working.
Definition: ir_Mitsubishi.cpp:107
IRsend::sendAirwell
void sendAirwell(uint64_t data, uint16_t nbits=kAirwellBits, uint16_t repeat=kAirwellMinRepeats)
Send an Airwell Manchester Code formatted message. Status: BETA / Appears to be working.
Definition: ir_Airwell.cpp:31
kDoshishaBits
const uint16_t kDoshishaBits
Definition: IRremoteESP8266.h:951
kCarrierAc40Bits
const uint16_t kCarrierAc40Bits
Definition: IRremoteESP8266.h:909
stdAc::fanspeed_t::kMedium
@ kMedium
kTrotecStateLength
const uint16_t kTrotecStateLength
Definition: IRremoteESP8266.h:1103
kWhirlpoolAcDefaultRepeat
const uint16_t kWhirlpoolAcDefaultRepeat
Definition: IRremoteESP8266.h:1108
IRsend::sendMirage
void sendMirage(const unsigned char data[], const uint16_t nbytes=kMirageStateLength, const uint16_t repeat=kMirageMinRepeat)
Send a Mirage formatted message. Status: STABLE / Reported as working.
Definition: ir_Mirage.cpp:30
IRsend::sendSAMSUNG
void sendSAMSUNG(const uint64_t data, const uint16_t nbits=kSamsungBits, const uint16_t repeat=kNoRepeat)
Send a 32-bit Samsung formatted message. Status: STABLE / Should be working.
Definition: ir_Samsung.cpp:81
kHitachiAc424StateLength
const uint16_t kHitachiAc424StateLength
Definition: IRremoteESP8266.h:992
kMitsubishiHeavy88StateLength
const uint16_t kMitsubishiHeavy88StateLength
Definition: IRremoteESP8266.h:1031
IRsend::sendNeoclima
void sendNeoclima(const unsigned char data[], const uint16_t nbytes=kNeoclimaStateLength, const uint16_t repeat=kNeoclimaMinRepeat)
Send a Neoclima message. Status: STABLE / Known to be working.
Definition: ir_Neoclima.cpp:40
IRsend::sendSharpRaw
void sendSharpRaw(const uint64_t data, const uint16_t nbits=kSharpBits, const uint16_t repeat=kNoRepeat)
Send a (raw) Sharp message.
Definition: ir_Sharp.cpp:63
stdAc::opmode_t::kLastOpmodeEnum
@ kLastOpmodeEnum
IRsend::sendGree
void sendGree(const uint64_t data, const uint16_t nbits=kGreeBits, const uint16_t repeat=kGreeDefaultRepeat)
Send a Gree Heat Pump formatted message. Status: STABLE / Working.
Definition: ir_Gree.cpp:74
stdAc::opmode_t::kOff
@ kOff
IRsend::sendEcoclim
void sendEcoclim(const uint64_t data, const uint16_t nbits=kEcoclimBits, const uint16_t repeat=kNoRepeat)
Send a EcoClim A/C formatted message. Status: Alpha / Completely untested.
Definition: ir_EcoClim.cpp:35
kMitsubishiBits
const uint16_t kMitsubishiBits
Definition: IRremoteESP8266.h:1018
IRsend::sendMitsubishi136
void sendMitsubishi136(const unsigned char data[], const uint16_t nbytes=kMitsubishi136StateLength, const uint16_t repeat=kMitsubishi136MinRepeat)
Send a Mitsubishi 136-bit A/C message. (MITSUBISHI136) Status: BETA / Probably working....
Definition: ir_Mitsubishi.cpp:846
stdAc
Enumerators and Structures for the Common A/C API.
Definition: IRsend.h:44
R_LT0541_HTA_A
@ R_LT0541_HTA_A
Definition: IRsend.h:140
kPanasonicAcStateLength
const uint16_t kPanasonicAcStateLength
Definition: IRremoteESP8266.h:1046
IRsend::sendMitsubishiHeavy88
void sendMitsubishiHeavy88(const unsigned char data[], const uint16_t nbytes=kMitsubishiHeavy88StateLength, const uint16_t repeat=kMitsubishiHeavy88MinRepeat)
Send a MitsubishiHeavy 88-bit A/C message. Status: BETA / Appears to be working. Needs testing agains...
Definition: ir_MitsubishiHeavy.cpp:47
IRsend::sendVestelAc
void sendVestelAc(const uint64_t data, const uint16_t nbits=kVestelAcBits, const uint16_t repeat=kNoRepeat)
Send a Vestel message Status: STABLE / Working.
Definition: ir_Vestel.cpp:38
kMideaBits
const uint16_t kMideaBits
Definition: IRremoteESP8266.h:1011
IRsend::encodeMetz
static uint32_t encodeMetz(const uint8_t address, const uint8_t command, const bool toggle=false)
Encode a Metz address, command, and toggle bits into a code suitable for use with sendMetz().
Definition: ir_Metz.cpp:48
kKelvinatorStateLength
const uint16_t kKelvinatorStateLength
Definition: IRremoteESP8266.h:997
IRsend::sendMidea24
void sendMidea24(const uint64_t data, const uint16_t nbits=kMidea24Bits, const uint16_t repeat=kMidea24MinRepeat)
Send a Midea24 formatted message. Status: STABLE / Confirmed working on a real device.
Definition: ir_Midea.cpp:732
IRsend::defaultBits
static uint16_t defaultBits(const decode_type_t protocol)
Get the default number of bits for a given protocol.
Definition: IRsend.cpp:599
stdAc::state_t::protocol
decode_type_t protocol
Definition: IRsend.h:98
stdAc::swingv_t::kLastSwingvEnum
@ kLastSwingvEnum
kDaikin216DefaultRepeat
const uint16_t kDaikin216DefaultRepeat
Definition: IRremoteESP8266.h:941
stdAc::opmode_t::kDry
@ kDry
stdAc::state_t::beep
bool beep
Definition: IRsend.h:113
kWhirlpoolAcStateLength
const uint16_t kWhirlpoolAcStateLength
Definition: IRremoteESP8266.h:1106
kNECBits
const uint16_t kNECBits
Definition: IRremoteESP8266.h:1040
kDenonBits
const uint16_t kDenonBits
Definition: IRremoteESP8266.h:946
kZepealBits
const uint16_t kZepealBits
Definition: IRremoteESP8266.h:1111
stdAc::state_t::filter
bool filter
Definition: IRsend.h:111
kCarrierAc40MinRepeat
const uint16_t kCarrierAc40MinRepeat
Definition: IRremoteESP8266.h:910
kMidea24Bits
const uint16_t kMidea24Bits
Definition: IRremoteESP8266.h:1013
IRsend::sendElitescreens
void sendElitescreens(const uint64_t data, const uint16_t nbits=kEliteScreensBits, const uint16_t repeat=kEliteScreensDefaultRepeat)
Send an Elite Screens formatted message. Status: BETA / Probably Working.
Definition: ir_EliteScreens.cpp:44
IRsend::sendDelonghiAc
void sendDelonghiAc(uint64_t data, uint16_t nbits=kDelonghiAcBits, uint16_t repeat=kDelonghiAcDefaultRepeat)
Send a Delonghi A/C formatted message. Status: STABLE / Reported as working on a real device.
Definition: ir_Delonghi.cpp:36
kDaikin160DefaultRepeat
const uint16_t kDaikin160DefaultRepeat
Definition: IRremoteESP8266.h:929
IRsend::_sendSony
void _sendSony(const uint64_t data, const uint16_t nbits, const uint16_t repeat, const uint16_t freq)
Internal procedure to generate a Sony/SIRC(Serial Infra-Red Control) message Status: STABLE / Known w...
Definition: ir_Sony.cpp:73
kToshibaACMinRepeat
const uint16_t kToshibaACMinRepeat
Definition: IRremoteESP8266.h:1096
IRsend::enableIROut
void enableIROut(uint32_t freq, uint8_t duty=kDutyDefault)
Set the output frequency modulation and duty cycle.
Definition: IRsend.cpp:92
stdAc::swingv_t::kMiddle
@ kMiddle
kHitachiAc344StateLength
const uint16_t kHitachiAc344StateLength
Definition: IRremoteESP8266.h:990
kPanasonicDke
@ kPanasonicDke
Definition: IRsend.h:149
kCarrierAc64Bits
const uint16_t kCarrierAc64Bits
Definition: IRremoteESP8266.h:911
kDaikin128DefaultRepeat
const uint16_t kDaikin128DefaultRepeat
Definition: IRremoteESP8266.h:932
kPioneerBits
const uint16_t kPioneerBits
Definition: IRremoteESP8266.h:1052
kSharpAcStateLength
const uint16_t kSharpAcStateLength
Definition: IRremoteESP8266.h:1077
IRsend::sendSharpAc
void sendSharpAc(const unsigned char data[], const uint16_t nbytes=kSharpAcStateLength, const uint16_t repeat=kSharpAcDefaultRepeat)
Send a Sharp A/C message. Status: Alpha / Untested.
Definition: ir_Sharp.cpp:226
kPanasonicLke
@ kPanasonicLke
Definition: IRsend.h:147
kGreeBits
const uint16_t kGreeBits
Definition: IRremoteESP8266.h:971
IRsend::sendCarrierAC
void sendCarrierAC(uint64_t data, uint16_t nbits=kCarrierAcBits, uint16_t repeat=kCarrierAcMinRepeat)
Send a Carrier HVAC formatted message. Status: STABLE / Works on real devices.
Definition: ir_Carrier.cpp:55
kJvcBits
const uint16_t kJvcBits
Definition: IRremoteESP8266.h:996
kDaikinStateLength
const uint16_t kDaikinStateLength
Definition: IRremoteESP8266.h:917
kLasertagBits
const uint16_t kLasertagBits
Definition: IRremoteESP8266.h:1000
IRsend::sendDaikin160
void sendDaikin160(const unsigned char data[], const uint16_t nbytes=kDaikin160StateLength, const uint16_t repeat=kDaikin160DefaultRepeat)
Send a Daikin160 (160-bit) A/C formatted message. Status: STABLE / Confirmed working.
Definition: ir_Daikin.cpp:1766
kAiwaRcT501Bits
const uint16_t kAiwaRcT501Bits
Definition: IRremoteESP8266.h:896
IRsend::sendDaikin2
void sendDaikin2(const unsigned char data[], const uint16_t nbytes=kDaikin2StateLength, const uint16_t repeat=kDaikin2DefaultRepeat)
Send a Daikin2 (312-bit) A/C formatted message. Status: STABLE / Expected to work.
Definition: ir_Daikin.cpp:667
ARRAH2E
@ ARRAH2E
(1) AR-RAH2E, AR-RAC1E, AR-RAE1E, AR-RCE1E (Default) Warning: Use on incorrect models can cause the A...
Definition: IRsend.h:121
kToshibaACStateLength
const uint16_t kToshibaACStateLength
Definition: IRremoteESP8266.h:1094
kTecoBits
const uint16_t kTecoBits
Definition: IRremoteESP8266.h:1092
IRsend::sendMitsubishi2
void sendMitsubishi2(uint64_t data, uint16_t nbits=kMitsubishiBits, uint16_t repeat=kMitsubishiMinRepeat)
Send a supplied second variant Mitsubishi 16-bit message. Status: BETA / Probably works.
Definition: ir_Mitsubishi.cpp:164
kInaxMinRepeat
const uint16_t kInaxMinRepeat
Definition: IRremoteESP8266.h:995
IRsend::ledOff
VIRTUAL void ledOff()
Turn off the IR LED.
Definition: IRsend.cpp:53
stdAc::swingh_t::kLastSwinghEnum
@ kLastSwinghEnum
kSherwoodBits
const uint8_t kSherwoodBits
Definition: IRremoteESP8266.h:1080
stdAc::state_t::mode
stdAc::opmode_t mode
Definition: IRsend.h:101
kDaikinDefaultRepeat
const uint16_t kDaikinDefaultRepeat
Definition: IRremoteESP8266.h:921
kDaikin64DefaultRepeat
const uint16_t kDaikin64DefaultRepeat
Definition: IRremoteESP8266.h:926
IRsend::sendInax
void sendInax(const uint64_t data, const uint16_t nbits=kInaxBits, const uint16_t repeat=kInaxMinRepeat)
Send a Inax Toilet formatted message. Status: STABLE / Working.
Definition: ir_Inax.cpp:31
lg_ac_remote_model_t
lg_ac_remote_model_t
LG A/C model numbers.
Definition: IRsend.h:175
IRsend::sendTranscold
void sendTranscold(const uint64_t data, const uint16_t nbits=kTranscoldBits, const uint16_t repeat=kTranscoldDefaultRepeat)
Send a Transcold message Status: STABLE / Confirmed Working.
Definition: ir_Transcold.cpp:40
kMitsubishiHeavy88MinRepeat
const uint16_t kMitsubishiHeavy88MinRepeat
Definition: IRremoteESP8266.h:1033
stdAc::fanspeed_t::kAuto
@ kAuto
kVoltas122LZF
@ kVoltas122LZF
Definition: IRsend.h:165
kHitachiAcDefaultRepeat
const uint16_t kHitachiAcDefaultRepeat
Definition: IRremoteESP8266.h:981
stdAc::state_t::econo
bool econo
Definition: IRsend.h:109
IRsend::sendSherwood
void sendSherwood(uint64_t data, uint16_t nbits=kSherwoodBits, uint16_t repeat=kSherwoodMinRepeat)
Send an IR command to a Sherwood device. Status: STABLE / Known working.
Definition: ir_Sherwood.cpp:21
kMidea24MinRepeat
const uint16_t kMidea24MinRepeat
Definition: IRremoteESP8266.h:1014
IRsend::sendMitsubishiHeavy152
void sendMitsubishiHeavy152(const unsigned char data[], const uint16_t nbytes=kMitsubishiHeavy152StateLength, const uint16_t repeat=kMitsubishiHeavy152MinRepeat)
Send a MitsubishiHeavy 152-bit A/C message. Status: BETA / Appears to be working. Needs testing again...
Definition: ir_MitsubishiHeavy.cpp:64
kDishBits
const uint16_t kDishBits
Definition: IRremoteESP8266.h:949
kDishMinRepeat
const uint16_t kDishMinRepeat
Definition: IRremoteESP8266.h:950
IRsend::sendMilestag2
void sendMilestag2(const uint64_t data, const uint16_t nbits=kMilesTag2ShotBits, const uint16_t repeat=kMilesMinRepeat)
Percentage.
Definition: ir_MilesTag2.cpp:41
stdAc::swingv_t::kLowest
@ kLowest
IRsend::sendPanasonic
void sendPanasonic(const uint16_t address, const uint32_t data, const uint16_t nbits=kPanasonicBits, const uint16_t repeat=kNoRepeat)
Send a Panasonic formatted message. Status: STABLE, but DEPRECATED.
Definition: ir_Panasonic.cpp:89
IRsend::space
VIRTUAL void space(uint32_t usec)
Turn the pin (LED) off for a given time. Sends an IR space for the specified number of microseconds....
Definition: IRsend.cpp:194
kHitachiAc2StateLength
const uint16_t kHitachiAc2StateLength
Definition: IRremoteESP8266.h:984
IRsend::sendGC
void sendGC(uint16_t buf[], uint16_t len)
Send a shortened GlobalCache (GC) IRdb/control tower formatted message. Status: STABLE / Known workin...
Definition: ir_GlobalCache.cpp:35
IRsend::encodeRC5
uint16_t encodeRC5(const uint8_t address, const uint8_t command, const bool key_released=false)
Encode a Philips RC-5 data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:115
IRsend::sendJVC
void sendJVC(uint64_t data, uint16_t nbits=kJvcBits, uint16_t repeat=kNoRepeat)
Send a JVC formatted message. Status: STABLE / Working.
Definition: ir_JVC.cpp:46
IRsend::sendDoshisha
void sendDoshisha(const uint64_t data, uint16_t nbits=kDoshishaBits, const uint16_t repeat=kNoRepeat)
Send a Doshisha formatted message. Status: STABLE / Works on real device.
Definition: ir_Doshisha.cpp:53
stdAc::swingh_t::kOff
@ kOff
IRsend::toggleRC5
uint64_t toggleRC5(const uint64_t data)
Flip the toggle bit of a Philips RC-5/RC-5X data message. Used to indicate a change of remote button'...
Definition: ir_RC5_RC6.cpp:142
IRsend::sendDaikin
void sendDaikin(const unsigned char data[], const uint16_t nbytes=kDaikinStateLength, const uint16_t repeat=kDaikinDefaultRepeat)
Send a Daikin 280-bit A/C formatted message. Status: STABLE.
Definition: ir_Daikin.cpp:63
kCarrierAcMinRepeat
const uint16_t kCarrierAcMinRepeat
Definition: IRremoteESP8266.h:908
kNikaiBits
const uint16_t kNikaiBits
Definition: IRremoteESP8266.h:1039
IRsend::encodeMagiQuest
uint64_t encodeMagiQuest(const uint32_t wand_id, const uint16_t magnitude)
Encode a MagiQuest wand_id, and a magnitude into a single 64bit value. (Only 48 bits of real data + 8...
Definition: ir_Magiquest.cpp:42
stdAc::swingh_t::kWide
@ kWide
kKelvinatorDefaultRepeat
const uint16_t kKelvinatorDefaultRepeat
Definition: IRremoteESP8266.h:999
IRsend::sendHitachiAC2
void sendHitachiAC2(const unsigned char data[], const uint16_t nbytes=kHitachiAc2StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 53 byte/424-bit A/C formatted message. (HITACHI_AC2) Basically the same as sendHitatch...
Definition: ir_Hitachi.cpp:105
kLutronBits
const uint16_t kLutronBits
Definition: IRremoteESP8266.h:1007
IRsend::sendDaikin128
void sendDaikin128(const unsigned char data[], const uint16_t nbytes=kDaikin128StateLength, const uint16_t repeat=kDaikin128DefaultRepeat)
Send a Daikin128 (128-bit) A/C formatted message. Status: STABLE / Known Working.
Definition: ir_Daikin.cpp:2524
IRsend::sendCarrierAC40
void sendCarrierAC40(uint64_t data, uint16_t nbits=kCarrierAc40Bits, uint16_t repeat=kCarrierAc40MinRepeat)
Send a Carrier 40bit HVAC formatted message. Status: STABLE / Tested against a real device.
Definition: ir_Carrier.cpp:127
IRsend::sendPanasonicAC32
void sendPanasonicAC32(const uint64_t data, const uint16_t nbits=kPanasonicAc32Bits, const uint16_t repeat=kPanasonicAcDefaultRepeat)
Send a Panasonic AC 32/16bit formatted message. Status: STABLE / Confirmed working.
Definition: ir_Panasonic.cpp:909
kSharpAcDefaultRepeat
const uint16_t kSharpAcDefaultRepeat
Definition: IRremoteESP8266.h:1079
stdAc::swingv_t::kHighest
@ kHighest
IRsend::sendTrotec
void sendTrotec(const unsigned char data[], const uint16_t nbytes=kTrotecStateLength, const uint16_t repeat=kTrotecDefaultRepeat)
Send a Trotec message. Status: Beta / Probably Working.
Definition: ir_Trotec.cpp:43
IRsend::sendCoronaAc
void sendCoronaAc(const uint8_t data[], const uint16_t nbytes=kCoronaAcStateLength, const uint16_t repeat=kNoRepeat)
Send a CoronaAc formatted message. Status: STABLE / Working on real device.
Definition: ir_Corona.cpp:50
A903
@ A903
Definition: IRsend.h:159
stdAc::state_t::light
bool light
Definition: IRsend.h:110
stdAc::state_t::fanspeed
stdAc::fanspeed_t fanspeed
Definition: IRsend.h:104
kEliteScreensDefaultRepeat
const uint16_t kEliteScreensDefaultRepeat
Definition: IRremoteESP8266.h:960
kTcl112AcStateLength
const uint16_t kTcl112AcStateLength
Definition: IRremoteESP8266.h:1089
IRsend::sendRCMM
void sendRCMM(uint64_t data, uint16_t nbits=kRCMMBits, uint16_t repeat=kNoRepeat)
Send a Philips RC-MM packet. Status: STABLE / Should be working.
Definition: ir_RCMM.cpp:46
IRsend::sendManchester
void sendManchester(const uint16_t headermark, const uint32_t headerspace, const uint16_t half_period, const uint16_t footermark, const uint32_t gap, const uint64_t data, const uint16_t nbits, const uint16_t frequency=38, const bool MSBfirst=true, const uint16_t repeat=kNoRepeat, const uint8_t dutycycle=kDutyDefault, const bool GEThomas=true)
Generic method for sending Manchester code messages. Will send leading or trailing 0's if the nbits i...
Definition: IRsend.cpp:506
kDaikin160StateLength
const uint16_t kDaikin160StateLength
Definition: IRremoteESP8266.h:927
IRsend::sendHitachiAC
void sendHitachiAC(const unsigned char data[], const uint16_t nbytes=kHitachiAcStateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 28-byte/224-bit A/C formatted message. (HITACHI_AC) Status: STABLE / Working.
Definition: ir_Hitachi.cpp:66
kDaikin2StateLength
const uint16_t kDaikin2StateLength
Definition: IRremoteESP8266.h:922
IRsend::sendElectraAC
void sendElectraAC(const unsigned char data[], const uint16_t nbytes=kElectraAcStateLength, const uint16_t repeat=kNoRepeat)
Send a Electra A/C formatted message. Status: Alpha / Needs testing against a real device.
Definition: ir_Electra.cpp:39
stdAc::swingh_t::kMiddle
@ kMiddle
kEcoclimBits
const uint16_t kEcoclimBits
Definition: IRremoteESP8266.h:952
kSherwoodMinRepeat
const uint16_t kSherwoodMinRepeat
Definition: IRremoteESP8266.h:1081
kCarrierAc64MinRepeat
const uint16_t kCarrierAc64MinRepeat
Definition: IRremoteESP8266.h:912
DG11J191
@ DG11J191
Definition: IRsend.h:171
IRsend::begin
void begin()
Enable the pin for output.
Definition: IRsend.cpp:45
kSanyoAcStateLength
const uint16_t kSanyoAcStateLength
Definition: IRremoteESP8266.h:1067
kTechnibelAcDefaultRepeat
const uint16_t kTechnibelAcDefaultRepeat
Definition: IRremoteESP8266.h:945
IRsend::sendFujitsuAC
void sendFujitsuAC(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kFujitsuAcMinRepeat)
Send a Fujitsu A/C formatted message. Status: STABLE / Known Good.
Definition: ir_Fujitsu.cpp:53
stdAc::swingh_t::kLeftMax
@ kLeftMax
IRsend::encodeSharp
uint32_t encodeSharp(const uint16_t address, const uint16_t command, const uint16_t expansion=1, const uint16_t check=0, const bool MSBfirst=false)
Encode a (raw) Sharp message from it's components. Status: STABLE / Works okay.
Definition: ir_Sharp.cpp:98
stdAc::opmode_t::kCool
@ kCool
kLegoPfBits
const uint16_t kLegoPfBits
Definition: IRremoteESP8266.h:1002
kSharpBits
const uint16_t kSharpBits
Definition: IRremoteESP8266.h:1076
stdAc::state_t::sleep
int16_t sleep
Definition: IRsend.h:114
stdAc::state_t::power
bool power
Definition: IRsend.h:100
stdAc::opmode_t::kFan
@ kFan
IRsend::sendHitachiAc424
void sendHitachiAc424(const unsigned char data[], const uint16_t nbytes=kHitachiAc424StateLength, const uint16_t repeat=kHitachiAcDefaultRepeat)
Send a Hitachi 53-byte/424-bit A/C formatted message. (HITACHI_AC424) Status: STABLE / Reported as wo...
Definition: ir_Hitachi.cpp:927
IRsend::sendTeco
void sendTeco(const uint64_t data, const uint16_t nbits=kTecoBits, const uint16_t repeat=kNoRepeat)
Send a Teco A/C message. Status: Beta / Probably working.
Definition: ir_Teco.cpp:37
stdAc::swingv_t::kOff
@ kOff
kMitsubishi136StateLength
const uint16_t kMitsubishi136StateLength
Definition: IRremoteESP8266.h:1025
IRsend::sendLutron
void sendLutron(uint64_t data, uint16_t nbits=kLutronBits, uint16_t repeat=kNoRepeat)
Send a Lutron formatted message. Status: Stable / Appears to be working for real devices.
Definition: ir_Lutron.cpp:41
IRsend::sendSamsungAC
void sendSamsungAC(const unsigned char data[], const uint16_t nbytes=kSamsungAcStateLength, const uint16_t repeat=kSamsungAcDefaultRepeat)
Send a Samsung A/C message. Status: Stable / Known working.
Definition: ir_Samsung.cpp:241
IRsend::encodePanasonic
uint64_t encodePanasonic(const uint16_t manufacturer, const uint8_t device, const uint8_t subdevice, const uint8_t function)
Calculate the raw Panasonic data based on device, subdevice, & function. Status: STABLE / Should be w...
Definition: ir_Panasonic.cpp:103
IRsend::sendSanyoLC7461
void sendSanyoLC7461(const uint64_t data, const uint16_t nbits=kSanyoLC7461Bits, const uint16_t repeat=kNoRepeat)
Send a Sanyo LC7461 message. Status: BETA / Probably works.
Definition: ir_Sanyo.cpp:112
IRsend::IRsend
IRsend(uint16_t IRsendPin, bool inverted=false, bool use_modulation=true)
Constructor for an IRsend object.
Definition: IRsend.cpp:28
IRsend::sendDISH
void sendDISH(uint64_t data, uint16_t nbits=kDishBits, uint16_t repeat=kDishMinRepeat)
Send a DISH NETWORK formatted message. Status: STABLE / Working.
Definition: ir_Dish.cpp:48
kRCMMBits
const uint16_t kRCMMBits
Definition: IRremoteESP8266.h:1059
kVestelAcBits
const uint8_t kVestelAcBits
Definition: IRremoteESP8266.h:1110
kTranscoldBits
const uint16_t kTranscoldBits
Definition: IRremoteESP8266.h:1101
kInaxBits
const uint16_t kInaxBits
Definition: IRremoteESP8266.h:994
YBOFB
@ YBOFB
Definition: IRsend.h:135
kLegoPfMinRepeat
const uint16_t kLegoPfMinRepeat
Definition: IRremoteESP8266.h:1003
A907
@ A907
Definition: IRsend.h:157
kAmcorDefaultRepeat
const uint16_t kAmcorDefaultRepeat
Definition: IRremoteESP8266.h:901
IRsend::sendDaikin216
void sendDaikin216(const unsigned char data[], const uint16_t nbytes=kDaikin216StateLength, const uint16_t repeat=kDaikin216DefaultRepeat)
Send a Daikin216 (216-bit) A/C formatted message. Status: Alpha / Untested on a real device.
Definition: ir_Daikin.cpp:1413
kSamsungBits
const uint16_t kSamsungBits
Definition: IRremoteESP8266.h:1060
IRsend::encodePioneer
uint64_t encodePioneer(uint16_t address, uint16_t command)
Calculate the raw Pioneer data code based on two NEC sub-codes Status: STABLE / Expected to work.
Definition: ir_Pioneer.cpp:77
kDaikin64Bits
const uint16_t kDaikin64Bits
Definition: IRremoteESP8266.h:925
stdAc::state_t::quiet
bool quiet
Definition: IRsend.h:107
IRsend::encodeRC5X
uint16_t encodeRC5X(const uint8_t address, const uint8_t command, const bool key_released=false)
Encode a Philips RC-5X data message. Status: Beta / Should be working.
Definition: ir_RC5_RC6.cpp:127
stdAc::state_t
Structure to hold a common A/C state.
Definition: IRsend.h:97
kPanasonicAc32Bits
const uint16_t kPanasonicAc32Bits
Definition: IRremoteESP8266.h:1051
kLasertagMinRepeat
const uint16_t kLasertagMinRepeat
Definition: IRremoteESP8266.h:1001
kDutyDefault
const uint8_t kDutyDefault
Definition: IRsend.h:35
stdAc::state_t::turbo
bool turbo
Definition: IRsend.h:108
IRsend::sendMagiQuest
void sendMagiQuest(const uint64_t data, const uint16_t nbits=kMagiquestBits, const uint16_t repeat=kNoRepeat)
Send a MagiQuest formatted message. Status: Beta / Should be working.
Definition: ir_Magiquest.cpp:25
IRsend::sendTechnibelAc
void sendTechnibelAc(uint64_t data, uint16_t nbits=kTechnibelAcBits, uint16_t repeat=kTechnibelAcDefaultRepeat)
Send an Technibel AC formatted message. Status: STABLE / Reported as working on a real device.
Definition: ir_Technibel.cpp:35
IRsend::modulation
bool modulation
Definition: IRsend.h:726
kNeoclimaMinRepeat
const uint16_t kNeoclimaMinRepeat
Definition: IRremoteESP8266.h:1043
kMitsubishi112StateLength
const uint16_t kMitsubishi112StateLength
Definition: IRremoteESP8266.h:1028
stdAc::fanspeed_t::kLow
@ kLow
IRsend::sendArgo
void sendArgo(const unsigned char data[], const uint16_t nbytes=kArgoStateLength, const uint16_t repeat=kArgoDefaultRepeat)
Send a Argo A/C formatted message. Status: BETA / Probably works.
Definition: ir_Argo.cpp:38
IRsend::sendTcl112Ac
void sendTcl112Ac(const unsigned char data[], const uint16_t nbytes=kTcl112AcStateLength, const uint16_t repeat=kTcl112AcDefaultRepeat)
Send a TCL 112-bit A/C message. Status: Beta / Probably working.
Definition: ir_Tcl.cpp:31
kPanasonicJke
@ kPanasonicJke
Definition: IRsend.h:150
stdAc::swingh_t::kRight
@ kRight
kSonyMinRepeat
const uint16_t kSonyMinRepeat
Definition: IRremoteESP8266.h:1086
IRsend::sendCOOLIX
void sendCOOLIX(uint64_t data, uint16_t nbits=kCoolixBits, uint16_t repeat=kCoolixDefaultRepeat)
Send a Coolix message Status: STABLE / Confirmed Working.
Definition: ir_Coolix.cpp:49
kEpsonBits
const uint16_t kEpsonBits
Definition: IRremoteESP8266.h:954
IRsend::sendNEC
void sendNEC(uint64_t data, uint16_t nbits=kNECBits, uint16_t repeat=kNoRepeat)
Send a raw NEC(Renesas) formatted message. Status: STABLE / Known working.
Definition: ir_NEC.cpp:28
IRsend::sendMWM
void sendMWM(const unsigned char data[], const uint16_t nbytes, const uint16_t repeat=kNoRepeat)
Send a MWM packet/message. Status: Implemented.
Definition: ir_MWM.cpp:37
voltas_ac_remote_model_t
voltas_ac_remote_model_t
Voltas A/C model numbers.
Definition: IRsend.h:163
IRsend::sendDaikin64
void sendDaikin64(const uint64_t data, const uint16_t nbits=kDaikin64Bits, const uint16_t repeat=kDaikin64DefaultRepeat)
Send a Daikin64 (64-bit) A/C formatted message. Status: Beta / Probably Working.
Definition: ir_Daikin.cpp:3440
IRsend::sendRC6
void sendRC6(const uint64_t data, const uint16_t nbits=kRC6Mode0Bits, const uint16_t repeat=kNoRepeat)
Send a Philips RC-6 packet. Status: Stable.
Definition: ir_RC5_RC6.cpp:190
kPeriodOffset
const int8_t kPeriodOffset
Definition: IRsend.h:26
kLgBits
const uint16_t kLgBits
Definition: IRremoteESP8266.h:1004
IRsend::sendDaikin176
void sendDaikin176(const unsigned char data[], const uint16_t nbytes=kDaikin176StateLength, const uint16_t repeat=kDaikin176DefaultRepeat)
Send a Daikin176 (176-bit) A/C formatted message. Status: STABLE / Working on a real device.
Definition: ir_Daikin.cpp:2130
sharp_ac_remote_model_t
sharp_ac_remote_model_t
Sharp A/C model numbers.
Definition: IRsend.h:156
kGoodweatherMinRepeat
const uint16_t kGoodweatherMinRepeat
Definition: IRremoteESP8266.h:969
kElectraAcStateLength
const uint16_t kElectraAcStateLength
Definition: IRremoteESP8266.h:956
kGreeDefaultRepeat
const uint16_t kGreeDefaultRepeat
Definition: IRremoteESP8266.h:972
stdAc::opmode_t
opmode_t
Common A/C settings for A/C operating modes.
Definition: IRsend.h:46
IRsend::sendGoodweather
void sendGoodweather(const uint64_t data, const uint16_t nbits=kGoodweatherBits, const uint16_t repeat=kGoodweatherMinRepeat)
Send a Goodweather HVAC formatted message. Status: BETA / Needs testing on real device.
Definition: ir_Goodweather.cpp:31