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

begin remote

  name  PHILIPS_VCR
  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       0x45
  post_data_bits  0
  post_data      0x0
  pre             0     0
  post            0     0
  gap          90000
  repeat_bit      2

      begin codes
	'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
	'0'                   0x0000000000000000    # 0
	'POWER'               0x000000000000000C    # POWER
	'CHANNELUP'           0x0000000000000020    # CH_UP
	'CHANNELDOWN'         0x000000000000000C    # CH_DOWN
	'REW'                 0x0000000000000025    # REW
	'FF'                  0x0000000000000026    # FF
	'PLAY'                0x0000000000000035    # PLAY
	'STOP'                0x0000000000000036    # STOP
	'PAUSE'               0x0000000000000029    # PAUSE
	'REC'                 0x0000000000000037    # REC
	'SELECT'              0x000000000000000B    # SELECT
	'TRACKING'            0x000000000000000E    # TRACKING
	'OSD'                 0x000000000000000F    # OSD
	'CLEAR'               0x0000000000000031    # CLEAR
	'GOTO'                0x0000000000000033    # GOTO
	'TIMER'               0x000000000000001D    # TIMER
	'MODE'                0x000000000000001E    # MODE
	'SP/LP'               0x000000000000003A    # SP/LP
	'AUDIO'               0x0000000000000023    # AUDIO
      end codes

end remote
