# LIRC config file for Philips 5373
# contributed by  Martin Schuster <Douglas@karanet.at>
#
# brand:                                   Philips
# model no. of remote control:             5373
# devices being controlled by this remote: very old VCR (&TV?)
#
# text beneath the batteries :  3131128 66160
#                               AG00 8672
#                               4822218 20391
#
# I've never used this RC with the device it was made for,
# so I'm just guessing at the meanings of the buttons.
# There's some kind of Shift-button at the left side of the
# RC; it seems to increase the values by 0x1140
# (this gives a total of 90 possible signals :)
# All shifted buttons have an prefix of S_, so shifted [1] is
# S_1. Only exception: The buttons in the last line have
# names (as they also have symbols printed above)
#
# Important: There's an 1000 myF capacitor parallel to the
# batteries; the RC seems to work w/o it, and in fact mine
# has started to leak already (did I mention that it's quite
# old?), so I removed it.
#
# Don't hestitate to email me if you have any questions or want
# to say thanks :))

begin remote

  name  Philips_5373
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           927   848
  zero          927   848
  plead        1041
  gap          113358
  min_repeat      2
  toggle_bit      2


      begin codes
#	number block
	'1'                   0x0000000000001001    # 1
	'2'                   0x0000000000001002    # 2
	'3'                   0x0000000000001003    # 3
	'4'                   0x0000000000001004    # 4
	'5'                   0x0000000000001005    # 5
	'6'                   0x0000000000001006    # 6
	'7'                   0x0000000000001007    # 7
	'8'                   0x0000000000001008    # 8
	'9'                   0x0000000000001009    # 9
	'0'                   0x0000000000001000    # 0
	'1-'                  0x000000000000100A    # 1-
	'CP'                  0x000000000000100B    # CP
	'VOLUMEUP'            0x0000000000001010    # VOLUME_UP
	'VOLUMEDOWN'          0x0000000000001011    # VOLUME_DOWN

#	main buttons
	'MUTE'                0x000000000000100D    # MUTE
	'POWER'               0x000000000000100C    # POWER
	'I-II'                0x0000000000001023    # I-II
	'GREEN'               0x000000000000100E    # GREEN
	'STEREO'              0x0000000000001024    # STEREO

	'#'                   double-buttons        # #
	'BRIGHTNESS_UP'       0x0000000000001012    # BRIGHTNESS_UP
	'BRIGHTNESS_DOWN'     0x0000000000001013    # BRIGHTNESS_DOWN
	'CONTRAST_UP'         0x0000000000001014    # CONTRAST_UP
	'CONTRAST_DOWN'       0x0000000000001015    # CONTRAST_DOWN
	'BASS_UP'             0x0000000000001016    # BASS_UP
	'BASS_DOWN'           0x0000000000001017    # BASS_DOWN
	'TREBLE_UP'           0x0000000000001018    # TREBLE_UP
	'TREBLE_DOWN'         0x0000000000001019    # TREBLE_DOWN
	'BALANCE_RIGHT'       0x000000000000101A    # BALANCE_RIGHT
	'BALANCE_LEFT'        0x000000000000101B    # BALANCE_LEFT

	'#'                   teletext              # #
	'TT_OUT'              0x000000000000101D    # TT_OUT
	'TT_UPDOWN'           0x000000000000102B    # TT_UPDOWN
	'TT_X'                0x000000000000102D    # TT_X
	'TV'                  0x000000000000103F    # TV
#	next line
	'TT_PLAY'             0x000000000000101E    # TT_PLAY
	'TT_INFO'             0x000000000000102C    # TT_INFO
	'TT_STOP'             0x0000000000001029    # TT_STOP
	'TT_TIME'             0x000000000000102A    # TT_TIME
	'TT_MIX'              0x000000000000102E    # TT_MIX
	'TELETEXT'            0x000000000000103C    # TELETEXT

#	VCR control (unshifted)
	'RECORD'              0x0000000000001037    # RECORD
	'BACK'                0x000000000000102F    # BACK
	'STOP'                0x0000000000001036    # STOP
	'PLAY'                0x0000000000001028    # PLAY
	'FORWARD'             0x0000000000001035    # FORWARD
	'REVERSE'             0x0000000000001033    # REVERSE

#	VCR control (shifted)
	'SKIP'                0x0000000000001177    # SKIP
	'FAST_BACK'           0x000000000000116F    # FAST_BACK
	'DOWN'                0x0000000000001176    # DOWN
	'PLAY_3'              0x0000000000001168    # PLAY_3
	'FAST_FORWARD'        0x0000000000001175    # FAST_FORWARD

#	SHIFTED codes
	'S_1'                 0x0000000000001141    # S_1
	'S_2'                 0x0000000000001142    # S_2
	'S_3'                 0x0000000000001143    # S_3
	'S_4'                 0x0000000000001144    # S_4
	'S_5'                 0x0000000000001145    # S_5
	'S_6'                 0x0000000000001146    # S_6
	'S_7'                 0x0000000000001147    # S_7
	'S_8'                 0x0000000000001148    # S_8
	'S_9'                 0x0000000000001149    # S_9
	'S_0'                 0x0000000000001140    # S_0
	'S_1-'                0x000000000000114A    # S_1-
	'S_CP'                0x000000000000114B    # S_CP
	'S_MUTE'              0x000000000000114D    # S_MUTE
	'S_POWER'             0x000000000000114C    # S_POWER
	'S_GREEN'             0x000000000000114E    # S_GREEN
	'S_VOLUME_UP'         0x0000000000001150    # S_VOLUME_UP
	'S_VOLUME_DOWN'       0x0000000000001151    # S_VOLUME_DOWN
	'S_BRIGHTNESS_UP'     0x0000000000001152    # S_BRIGHTNESS_UP
	'S_BRIGHTNESS_DOWN'   0x0000000000001153    # S_BRIGHTNESS_DOWN
	'S_CONTRAST_UP'       0x0000000000001154    # S_CONTRAST_UP
	'S_CONTRAST_DOWN'     0x0000000000001155    # S_CONTRAST_DOWN
	'S_BASS_UP'           0x0000000000001156    # S_BASS_UP
	'S_BASS_DOWN'         0x0000000000001157    # S_BASS_DOWN
	'S_TREBLE_UP'         0x0000000000001158    # S_TREBLE_UP
	'S_TREBLE_DOWN'       0x0000000000001159    # S_TREBLE_DOWN
	'S_BALANCE_RIGHT'     0x000000000000115A    # S_BALANCE_RIGHT
	'S_BALANCE_LEFT'      0x000000000000115B    # S_BALANCE_LEFT
	'S_TT_OUT'            0x000000000000115D    # S_TT_OUT
	'S_TT_PLAY'           0x000000000000115E    # S_TT_PLAY
	'S_I-II'              0x0000000000001163    # S_I-II
	'S_STEREO'            0x0000000000001164    # S_STEREO
	'S_TT_UPDOWN'         0x000000000000116B    # S_TT_UPDOWN
	'S_TT_X'              0x000000000000116D    # S_TT_X
	'S_TT_INFO'           0x000000000000116C    # S_TT_INFO
	'S_TT_STOP'           0x0000000000001169    # S_TT_STOP
	'S_TT_TIME'           0x000000000000116A    # S_TT_TIME
	'S_TT_MIX'            0x000000000000116E    # S_TT_MIX
	'S_TV'                0x000000000000117F    # S_TV
	'S_TELETEXT'          0x000000000000117C    # S_TELETEXT
	'S_REVERSE'           0x0000000000001173    # S_REVERSE

     end codes
end remote
