summaryrefslogtreecommitdiff
path: root/irmpprotocols.h
diff options
context:
space:
mode:
Diffstat (limited to 'irmpprotocols.h')
-rw-r--r--irmpprotocols.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/irmpprotocols.h b/irmpprotocols.h
index 1a80246..245c97c 100644
--- a/irmpprotocols.h
+++ b/irmpprotocols.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 2012 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmpprotocols.h,v 1.7 2012/12/06 08:49:32 fm Exp $
+ * $Id: irmpprotocols.h,v 1.8 2012/12/11 20:27:59 fm Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -56,8 +56,9 @@
#define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC
#define IRMP_THOMSON_PROTOCOL 30 // Thomson
#define IRMP_BOSE_PROTOCOL 31 // BOSE
+#define IRMP_A1TVBOX_PROTOCOL 32 // A1 TV Box
-#define IRMP_N_PROTOCOLS 31 // number of supported protocols
+#define IRMP_N_PROTOCOLS 32 // number of supported protocols
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* timing constants:
@@ -498,6 +499,21 @@ typedef uint8_t PAUSE_LEN;
#define BOSE_LSB 1 // LSB...MSB
#define BOSE_FLAGS 0 // flags
+#define A1TVBOX_START_BIT_PULSE_TIME 300.0e-6 // 300 usec pulse
+#define A1TVBOX_START_BIT_PAUSE_TIME 340.0e-6 // 340 usec pause
+#define A1TVBOX_BIT_PULSE_TIME 250.0e-6 // 250 usec pulse/pause
+#define A1TVBOX_BIT_PAUSE_TIME 150.0e-6 // 150 usec pulse/pause
+#define A1TVBOX_STOP_BIT 0 // has no stop bit
+#define A1TVBOX_LSB 0 // MSB...LSB
+#define A1TVBOX_FLAGS (IRMP_PARAM_FLAG_IS_MANCHESTER | IRMP_PARAM_FLAG_1ST_PULSE_IS_1 ) // flags
+#define A1TVBOX_FRAMES 1 // A1TVBOX sends each frame 1 times
+#define A1TVBOX_AUTO_REPETITION_PAUSE_TIME 22.2e-3 // repetition after 22.2ms
+#define A1TVBOX_ADDRESS_OFFSET 1 // skip 1 bits
+#define A1TVBOX_ADDRESS_LEN 8 // read 8 address bits
+#define A1TVBOX_COMMAND_OFFSET 9 // skip 9 bits (start bit + address)
+#define A1TVBOX_COMMAND_LEN 8 // read 8 command bits
+#define A1TVBOX_COMPLETE_DATA_LEN 17 // complete length incl. start bit
+
#define AUTO_FRAME_REPETITION_TIME 80.0e-3 // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms
#endif // _IRMP_PROTOCOLS_H_