summaryrefslogtreecommitdiff
path: root/irmpprotocols.h
diff options
context:
space:
mode:
authorukw2012-07-11 13:14:36 +0000
committerukw2012-07-11 13:14:36 +0000
commit3a7e26e1f87a0e738f763d2df005d5da1690696d (patch)
treed48381acd034c546fb3e9af6010bbb17b6c85701 /irmpprotocols.h
parent21a4e0eeeb70b7312cc252d8b471dd24663151e5 (diff)
downloadirmp-3a7e26e1f87a0e738f763d2df005d5da1690696d.zip
Version 2.2.4: added BOSE protocol
git-svn-id: svn://mikrocontroller.net/irmp@103 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
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 6544591..89b6226 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.4 2012/05/23 12:26:26 fm Exp $
+ * $Id: irmpprotocols.h,v 1.5 2012/07/11 12:44:30 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
@@ -55,8 +55,9 @@
#define IRMP_NEC42_PROTOCOL 28 // NEC with 42 bits
#define IRMP_LEGO_PROTOCOL 29 // LEGO Power Functions RC
#define IRMP_THOMSON_PROTOCOL 30 // Thomson
+#define IRMP_BOSE_PROTOCOL 31 // BOSE
-#define IRMP_N_PROTOCOLS 30 // number of supported protocols
+#define IRMP_N_PROTOCOLS 31 // number of supported protocols
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* timing constants:
@@ -482,6 +483,21 @@ typedef uint8_t PAUSE_LEN;
#define THOMSON_LSB 0 // MSB...LSB
#define THOMSON_FLAGS 0 // flags
+#define BOSE_START_BIT_PULSE_TIME 1060.0e-6 // 1060 usec pulse
+#define BOSE_START_BIT_PAUSE_TIME 1430.0e-6 // 1430 usec pause
+#define BOSE_PULSE_TIME 550.0e-6 // 550 usec pulse
+#define BOSE_1_PAUSE_TIME 1425.0e-6 // 1425 usec pause
+#define BOSE_0_PAUSE_TIME 437.0e-6 // 437 usec pause
+#define BOSE_FRAME_REPEAT_PAUSE_TIME 40.0e-3 // frame repeat after 40ms???
+#define BOSE_ADDRESS_OFFSET 0 // skip 0 bits
+#define BOSE_ADDRESS_LEN 0 // read 16 address bits
+#define BOSE_COMMAND_OFFSET 0 // skip 16 bits (8 address + 8 /address)
+#define BOSE_COMMAND_LEN 16 // read 16 bits (8 command + 8 /command)
+#define BOSE_COMPLETE_DATA_LEN 16 // complete length
+#define BOSE_STOP_BIT 1 // has stop bit
+#define BOSE_LSB 1 // LSB...MSB
+#define BOSE_FLAGS 0 // flags
+
#define AUTO_FRAME_REPETITION_TIME 80.0e-3 // SIRCS/SAMSUNG32/NUBERT: automatic repetition after 25-50ms
#endif // _IRMP_PROTOCOLS_H_