#
# this config file was automatically generated
# using lirc-0.6.3(serial) on Thu Apr 19 19:56:19 2001
#
# contributed by Stefan Huelswitt (huels|iname.com
#
# brand:             Loewe
# model:             Control 150 TV (3 modes)
# supported devices: 
#
# VTR mode is strange, see comments below

#
# this is for the TV mode
#

begin remote

  name  Loewe_150_TV
  bits            6
  flags RC5
  eps            30
  aeps          100

  one           912   852
  zero          912   852
  plead         939
  pre_data_bits   7
  pre_data       0x40
  gap          90974
  min_repeat	3
  toggle_bit      2

      begin codes
	'UP'                  0x0000000000000020    # Up
	'DOWN'                0x0000000000000021    # Down
	'LEFT'                0x0000000000000011    # Left
	'RIGHT'               0x0000000000000010    # Right
	'OK'                  0x0000000000000026    # Ok
	'RED'                 0x000000000000001B    # Red
	'GREEN'               0x000000000000001A    # Green
	'YELLOW'              0x000000000000002B    # Yellow
	'BLUE'                0x0000000000000028    # Blue
	'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
	'T'                   0x000000000000003C    # T
	'M'                   0x000000000000000B    # M
	'E'                   0x000000000000003F    # E
	'I'                   0x0000000000000027    # I
	'POWER'               0x000000000000000C    # Power
	'MUTE'                0x000000000000000D    # Mute
	'VIDEO'               0x0000000000000023    # Video
	'AUDIO'               0x0000000000000035    # Audio
	'PIP'                 0x000000000000000A    # PiP
	'V='                  0x0000000000000031    # V=
	'TIMER'               0x000000000000000F    # Timer
      end codes

end remote

#
# this is for the VTR mode
#
# VTR mode is a bit stange, as the remote first sends some NEC
# codes for a button followed by RC5 codes. If you hold a button
# only the RC5 codes are repeated.
# (Thanks to Christoph Bartelmus for figuring this out).

#
# this are the raw codes
#

begin remote

  name  Loewe_150_VTR_NEC
  bits           24
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       3518  1697
  one           460   396
  zero          460  1258
  ptrail        460
  pre_data_bits   24
  pre_data       0xBFFBF6
  gap          114917
  repeat_bit      0

      begin codes
	'UP'                  0x00000000007FBF36    # Up
	'DOWN'                0x00000000007F3FB6    # Down
	'LEFT'                0x00000000007F5FD6    # Left
	'RIGHT'               0x00000000007FDF56    # Right
	'OK'                  0x00000000007FE56C    # Ok
	'RED'                 0x0000000000FFBFB6    # Red
	'GREEN'               0x0000000000FFFFF6    # Green
	'YELLOW'              0x0000000000FFAFA6    # Yellow
	'BLUE'                0x0000000000FF3F36    # Blue
	'1'                   0x0000000000FFF7FE    # 1
	'2'                   0x0000000000FF777E    # 2
	'3'                   0x0000000000FFB7BE    # 3
	'4'                   0x0000000000FF373E    # 4
	'5'                   0x0000000000FFD7DE    # 5
	'6'                   0x0000000000FF575E    # 6
	'7'                   0x0000000000FF979E    # 7
	'8'                   0x0000000000FF171E    # 8
	'9'                   0x0000000000FFE7EE    # 9
	'0'                   0x0000000000FF676E    # 0
	'T'                   0x0000000000FF9F96    # T
	'M'                   0x00000000007F951C    # M
	'E'                   0x00000000007F9910    # E
	'POWER'               0x0000000000FF434A    # Power
	'VIDEO'               0x00000000007F058C    # Video
	'AUDIO'               0x0000000000FF333A    # Audio
	'PIP'                 0x00000000007F45CC    # PiP
	'V='                  0x00000000007FAF26    # V=
	'TIMER'               0x0000000000FFD5DC    # Timer
	'MUTE'                0x0000000000FFD2DB    # Mute
      end codes

end remote

#
# this are the RC5 codes
#

begin remote

  name  Loewe_150_VTR_RC5
  bits           13
  flags RC5
  eps            30
  aeps          100

  one           912   852
  zero          912   852
  plead         939
  gap          114917
  toggle_bit      2

      begin codes
	'UP'                  0x0000000000000950    # Up
	'DOWN'                0x0000000000000951    # Down
	'LEFT'                0x0000000000000155    # Left
	'RIGHT'               0x0000000000000956    # Right
	'OK'                  0x0000000000000157    # Ok
	'RED'                 0x0000000000001972    # Red
	'GREEN'               0x0000000000001176    # Green
	'YELLOW'              0x0000000000001975    # Yellow
	'BLUE'                0x0000000000001174    # Blue
	'1'                   0x0000000000001941    # 1
	'2'                   0x0000000000001142    # 2
	'3'                   0x0000000000001943    # 3
	'4'                   0x0000000000001144    # 4
	'5'                   0x0000000000001945    # 5
	'6'                   0x0000000000001146    # 6
	'7'                   0x0000000000001947    # 7
	'8'                   0x0000000000001148    # 8
	'9'                   0x0000000000001949    # 9
	'0'                   0x0000000000001140    # 0
	'T'                   0x0000000000001969    # T
	'M'                   0x0000000000000152    # M
	'E'                   0x0000000000000953    # E
	'POWER'               0x000000000000114C    # Power
	'MUTE'                0x000000000000195D    # Mute
	'VIDEO'               0x000000000000017E    # Video
	'AUDIO'               0x000000000000194B    # Audio
	'PIP'                 0x0000000000000145    # PiP
	'V='                  0x000000000000197A    # V=
	'TIMER'               0x0000000000001171    # Timer
      end codes

end remote

#
# this is for the DVD mode
#

begin remote

  name  Loewe_150_DVD
  bits            8
  flags RC6
  eps            30
  aeps          100

  header       2723   847
  one           468   411
  zero          468   411
  pre_data_bits   13
  pre_data       0xEFB
  gap          80964
  toggle_bit      5

      begin codes
	'UP'                  0x00000000000000A7    # Up
	'DOWN'                0x00000000000000A6    # Down
	'LEFT'                0x00000000000000A5    # Left
	'RIGHT'               0x00000000000000A4    # Right
	'OK'                  0x00000000000000A3    # Ok
	'RED'                 0x00000000000000DE    # Red
	'GREEN'               0x00000000000000CE    # Green
	'YELLOW'              0x00000000000000D3    # Yellow
	'BLUE'                0x00000000000000DF    # Blue
	'T'                   0x00000000000000CF    # T
	'M'                   0x000000000000002E    # M
	'E'                   0x000000000000007C    # E
	'I'                   0x00000000000000DD    # I
	'1'                   0x00000000000000FE    # 1
	'2'                   0x00000000000000FD    # 2
	'3'                   0x00000000000000FC    # 3
	'4'                   0x00000000000000FB    # 4
	'5'                   0x00000000000000FA    # 5
	'6'                   0x00000000000000F9    # 6
	'7'                   0x00000000000000F8    # 7
	'8'                   0x00000000000000F7    # 8
	'9'                   0x00000000000000F6    # 9
	'0'                   0x00000000000000FF    # 0
	'POWER'               0x00000000000000F3    # Power
	'VIDEO'               0x00000000000000B4    # Video
	'AUDIO'               0x00000000000000B1    # Audio
	'MUTE'                0x00000000000000F0    # Mute
	'TIMER'               0x0000000000000037    # Timer
	'V='                  0x00000000000000E2    # V=
	'PIP'                 0x000000000000007A    # PiP
      end codes

end remote
