]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpprotocols.h
Version 3.0.7 - added SAMSUNGAH protocol, improved some code for ESP8266
[irmp.git] / irmpprotocols.h
index 0b38759a3a48a15cf55a3e78b07172734394c9d3..0ca55a6b617d9b8bc6ff2bb02de6e8b4d18bfdeb 100644 (file)
@@ -5,7 +5,7 @@
  *\r
  * Copyright (c) 2013-2016 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmpprotocols.h,v 1.47 2016/09/14 06:31:48 fm Exp $\r
+ * $Id: irmpprotocols.h,v 1.48 2017/02/17 09:13:06 fm Exp $\r
  *\r
  * This program is free software; you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
 #define IRMP_PANASONIC_PROTOCOL                 48              // Panasonic (Beamer), start bits similar to KASEIKYO\r
 #define IRMP_MITSU_HEAVY_PROTOCOL               49              // Mitsubishi-Heavy Aircondition, similar timing as Panasonic beamer\r
 #define IRMP_VINCENT_PROTOCOL                   50              // Vincent\r
+#define IRMP_SAMSUNGAH_PROTOCOL                 51              // Vincent\r
 \r
-#define IRMP_RADIO1_PROTOCOL                    51              // Radio protocol (experimental status), do not use it yet!\r
+#define IRMP_RADIO1_PROTOCOL                    52              // Radio protocol (experimental status), do not use it yet!\r
 \r
-#define IRMP_N_PROTOCOLS                        52              // number of supported protocols\r
+#define IRMP_N_PROTOCOLS                        53              // number of supported protocols\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * timing constants:\r
@@ -207,6 +208,25 @@ typedef uint8_t     PAUSE_LEN;
 #define SAMSUNG48_AUTO_REPETITION_PAUSE_TIME    5.0e-3                          // repetition after 5 ms\r
 #define SAMSUNG48_FRAME_REPEAT_PAUSE_TIME       47.0e-3                         // frame repeat after 47ms\r
 \r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SAMSUNGAH:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define SAMSUNGAH_START_BIT_PULSE_TIME          2500.0e-6                       // 2500 usec pulse\r
+#define SAMSUNGAH_START_BIT_PAUSE_TIME          1900.0e-6                       // 1900 usec pause\r
+#define SAMSUNGAH_PULSE_TIME                     450.0e-6                       //  450 usec pulse\r
+#define SAMSUNGAH_1_PAUSE_TIME                  1100.0e-6                       // 1100 usec pause\r
+#define SAMSUNGAH_0_PAUSE_TIME                   450.0e-6                       //  450 usec pause\r
+#define SAMSUNGAH_FRAME_REPEAT_PAUSE_TIME         40.0e-3                       // frame repeat after 40ms\r
+#define SAMSUNGAH_ADDRESS_OFFSET                 0                              // skip 0 bits\r
+#define SAMSUNGAH_ADDRESS_LEN                   16                              // read 16 address bits, ignore 17..31\r
+#define SAMSUNGAH_COMMAND_OFFSET                32                              // skip 32 bits\r
+#define SAMSUNGAH_COMMAND_LEN                   16                              // read 32 bits\r
+#define SAMSUNGAH_COMPLETE_DATA_LEN             48                              // complete length\r
+#define SAMSUNGAH_STOP_BIT                      1                               // has stop bit\r
+#define SAMSUNGAH_LSB                           1                               // LSB...MSB?\r
+#define SAMSUNGAH_FLAGS                         0                               // flags\r
+\r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * MATSUSHITA:\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r