#
# this is a shift encoded remote control from philips
#
# contributed by <Karsten.Knorr@Knorrs-World.com>
#
# based upon the config-file for the 
#   Philips RD6835 for CD-player
# contributed by <claas@bigfoot.com>
#
# brand:             Philips
# model:             RD 5862
# supported devices: CD-player
#
# Comments:
#
# The RD 5862 does not have a "scan" button, but the config-file will
# also work with other Philips CD-player remotes which might have it


begin remote

  name  PHILIPS_CD
  bits            6
  flags SHIFT_ENC|CONST_LENGTH
  eps            20
  aeps            0

  one           940   840
  zero          940   840
  ptrail          0
  plead         940
  pre_data_bits   7
  pre_data       0x54
  gap          115200
  repeat_bit      2

      begin codes
	'0'                   0x0000000000000000    # 0
	'1'                   0x0000000000000001    # 1
	'2'                   0x0000000000000002    # 2
	'3'                   0x0000000000000003    # 3
	'4'                   0x0000000000000004    # 4
	'5'                   0x0000000000000005    # 5
	'6'                   0x0000000000000006    # 6
	'7'                   0x0000000000000007    # 7
	'8'                   0x0000000000000008    # 8
	'9'                   0x0000000000000009    # 9
	'SCAN'                0x000000000000002B    # SCAN
	'OPEN/CLOSE'          0x000000000000002D    # OPEN/CLOSE
	'REPEAT'              0x000000000000001D    # REPEAT
	'PAUSE'               0x0000000000000030    # PAUSE
	'RANDOM'              0x000000000000001C    # RANDOM
	'NEXT_TRACK'          0x0000000000000020    # NEXT_TRACK
	'PREV_TRACK'          0x0000000000000021    # PREV_TRACK
	'PLAY'                0x0000000000000035    # PLAY
	'STOP'                0x0000000000000036    # STOP
	'DIRECT_PR/PLAY'      0x0000000000000024    # DIRECT_PR/PLAY
	'NEXT_INDEX'          0x0000000000000022    # NEXT_INDEX
	'PREV_INDEX'          0x0000000000000023    # PREV_INDEX
	'SEARCH_BACKW'        0x0000000000000032    # SEARCH_BACKW
	'SEARCH_FORW'         0x0000000000000034    # SEARCH_FORW
	'FAST'                0x000000000000002F    # FAST
	'A/B'                 0x000000000000003B    # A/B
	'TIME'                0x000000000000000B    # TIME
	'REVIEW'              0x000000000000000F    # REVIEW
	'C'                   0x0000000000000031    # C
	'S'                   0x0000000000000029    # S
      end codes

end remote


begin remote

  name  PHILIPS_LV2
  bits            6
  flags SHIFT_ENC|CONST_LENGTH
  eps            20
  aeps            0

  one           940   840
  zero          940   840
  ptrail          0
  plead         940
  pre_data_bits   7
  pre_data       0x14
  gap          115200
  repeat_bit      2

      begin codes
	'FTS'                 0x000000000000002c    # FTS
      end codes

end remote
