*\r
* Copyright (c) 2013 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmpprotocols.h,v 1.20 2014/05/19 18:55:43 fm Exp $\r
+ * $Id: irmpprotocols.h,v 1.22 2014/05/30 12:48:54 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_RCMM32_PROTOCOL 36 // Fujitsu-Siemens (Activy remote control)\r
#define IRMP_RCMM24_PROTOCOL 37 // Fujitsu-Siemens (Activy keyboard)\r
#define IRMP_RCMM12_PROTOCOL 38 // Fujitsu-Siemens (Activy keyboard)\r
-#define IRMP_RADIO1_PROTOCOL 39\r
+#define IRMP_SPEAKER_PROTOCOL 39 // Another loudspeaker protocol, similar to Nubert\r
+#define IRMP_RADIO1_PROTOCOL 40 // Radio protocol (devel status), do not use it yet!\r
\r
-#define IRMP_N_PROTOCOLS 39 // number of supported protocols\r
+#define IRMP_N_PROTOCOLS 40 // number of supported protocols\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* timing constants:\r
#define NUBERT_LSB 0 // MSB?\r
#define NUBERT_FLAGS 0 // flags\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * SPEAKER:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#define SPEAKER_START_BIT_PULSE_TIME 440.0e-6 // 1340 usec pulse\r
+#define SPEAKER_START_BIT_PAUSE_TIME 1250.0e-6 // 340 usec pause\r
+#define SPEAKER_1_PULSE_TIME 1250.0e-6 // 1340 usec pulse\r
+#define SPEAKER_1_PAUSE_TIME 440.0e-6 // 340 usec pause\r
+#define SPEAKER_0_PULSE_TIME 440.0e-6 // 500 usec pulse\r
+#define SPEAKER_0_PAUSE_TIME 1250.0e-6 // 1300 usec pause\r
+#define SPEAKER_FRAMES 2 // Nubert sends 2 frames\r
+#define SPEAKER_AUTO_REPETITION_PAUSE_TIME 35.0e-3 // auto repetition after 35ms\r
+#define SPEAKER_FRAME_REPEAT_PAUSE_TIME 35.0e-3 // frame repeat after 45ms\r
+#define SPEAKER_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define SPEAKER_ADDRESS_LEN 0 // read 0 address bits\r
+#define SPEAKER_COMMAND_OFFSET 0 // skip 0 bits\r
+#define SPEAKER_COMMAND_LEN 10 // read 10 bits\r
+#define SPEAKER_COMPLETE_DATA_LEN 10 // complete length\r
+#define SPEAKER_STOP_BIT 1 // has stop bit\r
+#define SPEAKER_LSB 0 // MSB?\r
+#define SPEAKER_FLAGS 0 // flags\r
+\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* BANG_OLUFSEN:\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\r