]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpprotocols.h
Version 2.2.4: added BOSE protocol
[irmp.git] / irmpprotocols.h
index 6544591e88e66b3fdf0f83e70d9727de74742e47..89b622607122b1a0b5db2b4de0a43c65d7897b35 100644 (file)
@@ -5,7 +5,7 @@
  *\r
  * Copyright (c) 2012 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmpprotocols.h,v 1.4 2012/05/23 12:26:26 fm Exp $\r
+ * $Id: irmpprotocols.h,v 1.5 2012/07/11 12:44:30 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
@@ -55,8 +55,9 @@
 #define IRMP_NEC42_PROTOCOL                     28              // NEC with 42 bits\r
 #define IRMP_LEGO_PROTOCOL                      29              // LEGO Power Functions RC\r
 #define IRMP_THOMSON_PROTOCOL                   30              // Thomson\r
+#define IRMP_BOSE_PROTOCOL                      31              // BOSE\r
 \r
-#define IRMP_N_PROTOCOLS                        30              // number of supported protocols\r
+#define IRMP_N_PROTOCOLS                        31              // number of supported protocols\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * timing constants:\r
@@ -482,6 +483,21 @@ typedef uint8_t     PAUSE_LEN;
 #define THOMSON_LSB                             0                               // MSB...LSB\r
 #define THOMSON_FLAGS                           0                               // flags\r
 \r
+#define BOSE_START_BIT_PULSE_TIME               1060.0e-6                       // 1060 usec pulse\r
+#define BOSE_START_BIT_PAUSE_TIME               1430.0e-6                       // 1430 usec pause\r
+#define BOSE_PULSE_TIME                          550.0e-6                       //  550 usec pulse\r
+#define BOSE_1_PAUSE_TIME                       1425.0e-6                       // 1425 usec pause\r
+#define BOSE_0_PAUSE_TIME                        437.0e-6                       //  437 usec pause\r
+#define BOSE_FRAME_REPEAT_PAUSE_TIME              40.0e-3                       // frame repeat after 40ms???\r
+#define BOSE_ADDRESS_OFFSET                      0                              // skip 0 bits\r
+#define BOSE_ADDRESS_LEN                         0                              // read 16 address bits\r
+#define BOSE_COMMAND_OFFSET                      0                              // skip 16 bits (8 address + 8 /address)\r
+#define BOSE_COMMAND_LEN                        16                              // read 16 bits (8 command + 8 /command)\r
+#define BOSE_COMPLETE_DATA_LEN                  16                              // complete length\r
+#define BOSE_STOP_BIT                           1                               // has stop bit\r
+#define BOSE_LSB                                1                               // LSB...MSB\r
+#define BOSE_FLAGS                              0                               // flags\r
+\r
 #define AUTO_FRAME_REPETITION_TIME              80.0e-3                         // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms\r
 \r
 #endif // _IRMP_PROTOCOLS_H_\r