Andrew Russell / Mbed OS RC5_AndrewR

Dependents:   AppleRemoteController_copy_Production_Version AppleRemoteController_Reference_Only

Revision:
0:83d4a20e7bc7
Child:
1:bb881a434906
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rc5codes.h	Tue Jun 16 11:22:55 2015 +0000
@@ -0,0 +1,81 @@
+/********************************* RC5 control codes ******************************/
+// The Philips RC5 coce consists of 14 bits delivered in bi-phase Manchester encoding from
+// an IR LED on the remote.  This is picked up by a detector (e.g. a Vishay TSOP3741) which
+// outputs the demodulated bit stream as follows:-
+// First 2 bits are start bits - allow the detector AGC to stabilize and trigger decoding process
+// Third bit is the toggle bit - it remains at the same logic level as long as a key is depressed
+// and will change to the alternate state when the key is un/re-depressed or when a different
+// key is depressed
+// Bits 4~8 are the address bits and determine which piece of equipment is being controlled
+// Bits 9~14 are the command bits
+// As long as a key is depressed, the 14 bits will be sent by the remote controller in sequential
+// blocks with a 120ms delay between subsequent block transmissions
+//  See http://en.wikipedia.org/wiki/RC-5 for the codes
+
+// 0-9 NUMERIC KEYS 0 - 9 - not used in this implementation
+
+// unused commands and addresses have been commented out - simply un-comment them to use them 
+// but note that if you do this, you will have to decode them, otherwise they will just fall through
+// and be ignored by the decoder.  Only the ones un-commented out below are active in V1.0
+// note you will also need to write the associated command processor functions 
+
+#define STANDBY 12      // toggle  power ON and OFF
+#define MUTE 13         // toggle output signal on and off
+// #define 14 PRESETS
+#define VUP 16          
+#define VDOWN 17
+// #define 18 BRIGHTNESS +
+// #define 19 BRIGHTNESS -
+// #define 20 COLOR SATURATION +
+// #define 21 COLOR SATURATION -
+// #define BASSUP 22
+// #define BASSDOWN 23
+// #define TREBLEUP 24
+// #define TREBLEDWN 25
+// #define BALRIGHT 26
+// #define BALLEFT 27
+// #define PAUSE 48
+// #define 50 FAST REVERSE
+// #define 52 FAST FORWARD-
+// #define PLAY 53
+// #define STOP 54
+// #define 55 RECORD
+#define SELECT_R 3      // rotates input through inputs - must depress and then release each time
+
+/* RC5 address */
+// #define 0 TV SET 1
+// #define 1 TV SET 2
+// #define 2 VIDEOTEXT
+// #define 3 EXPANSION FOR TV 1 AND 2
+// #define 4 LASER VIDEO PLAYER
+// #define 5 VIDEO RECORDER 1 (VCR 1)
+// #define 6 VIDEO RECORDER 2 (VCR 2)
+// #define 7 RESERVED
+// #define 8 SAT 1
+// #define 9 EXPANSION FOR VCR 1 OR 2
+// #define 10 SAT 2
+// #define 11 RESERVED
+// #define 12 CD VIDEO
+// #define 13 RESERVED
+// #define 14 CD PHOTO
+// #define RESERVED
+#define PREAMP 16
+// #define RECEIVER 17
+// #define 18 TAPE / CASSETE RECORDER
+// #define PRE2 19
+// #define CD 20
+// #define AUDIO_RACK 21
+// #define 22 AUDIO SAT RECEIVER
+// #define 23 DCC RECORDER
+// #define 24 RESERVED
+// #define 25 RESERVED
+// #define 26 WRITABLE CD
+// #define 26-31 RESERVED0 TV SET 1
+
+
+
+
+
+
+
+