*\r
* Copyright (c) 2009-2011 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmp.h,v 1.68 2012/02/13 10:55:50 fm Exp $\r
+ * $Id: irmp.h,v 1.70 2012/02/21 08:41:46 fm Exp $\r
*\r
* ATMEGA88 @ 8 MHz\r
*\r
#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_GRUNDIG2_PROTOCOL 31 // Grundig, e.g. TP400\r
\r
-#define IRMP_N_PROTOCOLS 30 // number of supported protocols\r
+#define IRMP_N_PROTOCOLS 31 // number of supported protocols\r
\r
// some flags of struct IRMP_PARAMETER:\r
#define IRMP_PARAM_FLAG_IS_MANCHESTER 0x01\r
#define SAMSUNG32_COMPLETE_DATA_LEN 32 // complete length\r
#define SAMSUNG32_FRAMES 1 // SAMSUNG32 sends each frame 1 times\r
#define SAMSUNG32_AUTO_REPETITION_PAUSE_TIME 47.0e-3 // repetition after 47 ms\r
-#define SAMSUNG32_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 40ms\r
+#define SAMSUNG32_FRAME_REPEAT_PAUSE_TIME 47.0e-3 // frame repeat after 47ms\r
\r
#define MATSUSHITA_START_BIT_PULSE_TIME 3488.0e-6 // 3488 usec pulse\r
#define MATSUSHITA_START_BIT_PAUSE_TIME 3488.0e-6 // 3488 usec pause\r
#define THOMSON_LSB 0 // MSB...LSB\r
#define THOMSON_FLAGS 0 // flags\r
\r
+#define GRUNDIG2_START_BIT_PULSE_TIME 550.0e-6 // 550 usec pulse\r
+#define GRUNDIG2_START_BIT_PAUSE_TIME 2700.0e-6 // 2700 usec pause\r
+#define GRUNDIG2_BIT_PULSE_TIME 550.0e-6 // 550 usec short pulse\r
+#define GRUNDIG2_BIT_PAUSE_TIME 550.0e-6 // 550 usec short pause\r
+#define GRUNDIG2_FRAME_REPEAT_PAUSE_TIME 100.0e-3 // frame repeat after 100ms\r
+#define GRUNDIG2_STOP_BIT 0 // has no stop bit\r
+#define GRUNDIG2_LSB 1 // MSB...LSB\r
+#define GRUNDIG2_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1) // flags\r
+#define GRUNDIG2_ADDRESS_OFFSET 0 // skip 0 bits\r
+#define GRUNDIG2_ADDRESS_LEN 0 // read 0 bits\r
+#define GRUNDIG2_COMMAND_OFFSET 0 // skip 0 bits\r
+#define GRUNDIG2_COMMAND_LEN 7 // read 6 + 1 command bits, last bit is always 1\r
+#define GRUNDIG2_COMPLETE_DATA_LEN 7 // complete length\r
+\r
#define AUTO_FRAME_REPETITION_TIME 80.0e-3 // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms\r
// KASEIKYO: automatic repetition after 75ms\r
\r