#
# this is a shift encoded remote control from philips
#
# contributed by Per-Henrik Persson (vajper@datorklubben.ml.org)
#
# brand:             Philips
# model:             RD6831
# supported devices: CD-changer CDC935
#

begin remote

  name  PHILIPS_CD
  bits            6
  flags SHIFT_ENC
  eps            20
  aeps            0

  header          0     0
  one           940   840
  zero          940   840
  ptrail          0
  plead         940
  foot            0     0
  repeat          0     0
  pre_data_bits   7
  pre_data       0x54
  post_data_bits  0
  post_data      0x0
  pre             0     0
  post            0     0
  gap          90000
  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
	'INDEX'               0x000000000000002B    # INDEX
	'OPEN/CLOSE'          0x000000000000002D    # OPEN/CLOSE
	'REPEAT'              0x000000000000001D    # REPEAT
	'DISC'                0x000000000000001E    # DISC
	'PAUSE'               0x0000000000000030    # PAUSE
	'RANDOM'              0x000000000000001C    # RANDOM
	'TRACK_+'             0x0000000000000020    # TRACK_+
	'TRACK_-'             0x0000000000000021    # TRACK_-
	'PLAY'                0x0000000000000035    # PLAY
	'STOP'                0x0000000000000036    # STOP
      end codes

end remote
