heise online · c't · iX · Technology Review · Telepolis · mobil · Security · Netze · heise open · heise resale · Autos · c't-TV · Jobs · Kiosk
Zum Inhalt
c't

c't Projekte - c't-Bot und c't-Sim - Mailinglisten

c't-Bot und c't-Sim


[Voriger (Datum)] [Nächster (Datum)] [Voriger (Thread)] [Nächster (Thread)]
[Nach Datum][Nach Thread]

[ct-bot] FB-Codes fuer Hauppauge

Absender: Timo Sandmann
Datum: Mo, 20.03.2006 22:27:05
In-reply-to: <200603181702.46175.bbe@xxxxxxxx>


Hallo,

ich habe die Codes für meine Hauppauge-Fernbedienung mal in die rc5-codes.h
eingefügt. Leider heißt die Karte dazu auch "Win-TV", da diese Fernbedienung
aber umfangreicher ist, habe ich sie mal "HAUPPAUGE_EXTENDED" genannt.

Mit freundlichen Grüßen 
Timo Sandmann
Index: include/rc5-codes.h
===================================================================
RCS file: /ctbot/ct-Bot/include/rc5-codes.h,v
retrieving revision 1.6
diff -u -r1.6 rc5-codes.h
--- include/rc5-codes.h	19 Mar 2006 12:47:26 -0000	1.6
+++ include/rc5-codes.h	20 Mar 2006 21:01:04 -0000
@@ -49,6 +49,7 @@
 
 
 //#define RC_HAVE_HAUPPAUGE_WINTV
+//#define RC_HAVE_HAUPPAUGE_EXTENDED
 //#define RC_HAVE_CONRAD_PROMO8
 
 
@@ -92,6 +93,59 @@
 	#define RC5_CODE_BLUE	RC5_NOT_AVAIL			/*!< Taste nicht vorhanden */
 
 #endif /* RC_HAVE_HAUPPAUGE_WINTV */
+
+/*!
+ * Fernbedienung Hauppauge erweitert
+ */
+
+#ifdef RC_HAVE_HAUPPAUGE_EXTENDED
+	#define RC_HAVE_CODES							/*!< Definiert Codes */
+	#undef JOG_DIAL									/*!< Hat keinen Jog Dial */
+
+	#define RC5_MASK		(RC5_COMMAND)
+	#define RC5_NOT_AVAIL	(0xFFFF)				/*!< Code fuerr Taste nicht vorhanden */
+
+	#define	RC5_CODE_0		(0x1000 & RC5_MASK)		/*!< Taste 0 */
+	#define	RC5_CODE_1		(0x1001 & RC5_MASK)		/*!< Taste 1 */
+	#define	RC5_CODE_2		(0x1002 & RC5_MASK)		/*!< Taste 2 */
+	#define	RC5_CODE_3		(0x1003 & RC5_MASK)		/*!< Taste 3 */
+	#define	RC5_CODE_4		(0x1004 & RC5_MASK)		/*!< Taste 4 */
+	#define	RC5_CODE_5		(0x1005 & RC5_MASK)		/*!< Taste 5 */
+	#define	RC5_CODE_6		(0x1006 & RC5_MASK)		/*!< Taste 6 */
+	#define	RC5_CODE_7		(0x1007 & RC5_MASK)		/*!< Taste 7 */
+	#define	RC5_CODE_8		(0x1008 & RC5_MASK)		/*!< Taste 8 */
+	#define	RC5_CODE_9		(0x1009 & RC5_MASK)		/*!< Taste 9 */
+
+	#define	RC5_CODE_PWR	(0x103D & RC5_MASK)		/*!< Taste Power */
+	#define RC5_CODE_GO		{0x103B & RC5_MASK}		/*!< Taste Go */
+	#define RC5_CODE_MENU	{0x100D & RC5_MASK}		/*!< Taste Menu */
+	#define RC5_CODE_EXIT	{0x101F & RC5_MASK}		/*!< Taste Back/Exit */
+
+	#define	RC5_CODE_SELECT	(0x1025 & RC5_MASK)		/*!< Taste OK */
+	#define	RC5_CODE_UP		(0x1020 & RC5_MASK)		/*!< Taste CH + */
+	#define	RC5_CODE_DOWN	(0x1021 & RC5_MASK)		/*!< Taste CH - */
+	#define	RC5_CODE_LEFT	(0x1011 & RC5_MASK)		/*!< Taste VOL- */
+	#define	RC5_CODE_RIGHT	(0x1010 & RC5_MASK)		/*!< Taste VOL+ */
+
+	#define RC5_CODE_RED	{0x100B	& RC5_MASK}		/*!< Taste rot */
+	#define RC5_CODE_GREEN	{0x102E	& RC5_MASK}		/*!< Taste gruen */
+	#define RC5_CODE_YELLOW	{0x1038	& RC5_MASK}		/*!< Taste gelb */
+	#define RC5_CODE_BLUE	{0x1029	& RC5_MASK}		/*!< Taste blau */
+	
+	#define RC5_CODE_MUTE	{0x100F & RC5_MASK}		/*!< Taste Mute */
+	#define RC5_CODE_BLANK	{0x100C & RC5_MASK}		/*!< Taste zwischen Mute, Full */
+	#define	RC5_CODE_VIEW	(0x103C & RC5_MASK)		/*!< Taste Full */
+	#define RC5_CODE_BWD	{0x1032	& RC5_MASK}		/*!< Taste << */
+	#define RC5_CODE_PLAY	{0x1035 & RC5_MASK}		/*!< Taste Play */
+	#define RC5_CODE_FWD	{0x1034	& RC5_MASK}		/*!< Taste >> */
+	#define RC5_CODE_REC	{0x1037 & RC5_MASK}		/*!< Taste Record */
+	#define RC5_CODE_STOP	{0x1036 & RC5_MASK}		/*!< Taste Stop */
+	#define RC5_CODE_PAUSE	{0x1030 & RC5_MASK}		/*!< Taste Pause */
+	#define RC5_CODE_REPLAY	{0x1024 & RC5_MASK}		/*!< Taste Replay */
+	#define RC5_CODE_Skip	{0x101E & RC5_MASK}		/*!< Taste Skip */
+	
+
+#endif /* RC_HAVE_HAUPPAUGE_EXTENDED */
 
 
 /*!


Copyright © 2007 Heise Zeitschriften Verlag Kritik, Anregungen bitte an c't-WWW Datenschutzhinweis   Impressum