#
# contributed by Daniel Glckner 
#
# brand:                                   Telefunken
# model no. of remote control:             FB1320, FB1550 & VISA IR 365
# devices being controlled by this remote: SABA M5116 VT Y
#
# The IR 365 was bought as a replacement remote for a Telefunken (or was
# it Blaupunkt ?) TV. Ripped it apart several years ago, don't know its
# name.
# The other two remotes are for Telefunken VCRs and have a switch to
# control a TV. The manuals don't say which TVs and it's not
# configurable.

begin remote

  name  Telefunken_TV
  bits            6
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          210

# FB1320 emits 429 8216 5326
# FB1550 emits 39 8579 5707
# Saba MB3003 emits 117 8536 5652
# VISA IR 365 emits 39 8545 5687
# from the Lirc archive:
# Saba TC3003 emits 170 8500 5600
# Thomson RCT3004 emits 206 8425 5551
  one           234  8397
  zero          234  5516
  ptrail        234
  gap          135596
# Bits 1 AND 2 are toggle bits in all three remotes, so receiving won't
# work half of the time.
# The Saba remotes have bit 1=1, but the Saba M5116 VT Y seems to ignore
# that bit.
  toggle_bit      2
  pre_data_bits   5
  pre_data       0x17


      begin codes
	'1'                   0x00                  # 1
	'2'                   0x08                  # 2
	'3'                   0x10                  # 3
	'4'                   0x01                  # 4
	'5'                   0x09                  # 5
	'6'                   0x11                  # 6
	'7'                   0x02                  # 7
	'8'                   0x0A                  # 8
	'9'                   0x12                  # 9
	'0'                   0x0E                  # 0
	'-'                   0x2A                  # -
	'+'                   0x29                  # +
	'POWER'               0x1D                  # POWER
	'RED/TONE'            0x39                  # RED/TONE
	'GREEN/PICTURE'       0x3B                  # GREEN/PICTURE
	'YELLOW/PR'           0x38                  # YELLOW/PR
	'BLUE/VT'             0x15                  # BLUE/VT
	'VIOLET/NORM'         0x1E                  # VIOLET/NORM
	'TV'                  0x3E                  # TV
	'MUTE'                0x05                  # MUTE
	'AV'                  0x18                  # AV
	'VOLUMEDOWN'          0x1C                  # VOLUME-
	'VOLUMEUP'            0x1B                  # VOLUME+
	'BRIGHTNESS-'         0x0C                  # BRIGHTNESS-
	'BRIGHTNESS+'         0x0B                  # BRIGHTNESS+
	'COLOR-'              0x04                  # COLOR-
	'COLOR+'              0x03                  # COLOR+
	'CHANNEL'             0x06                  # CHANNEL
# only FB1320: 
	'FORMAT-'             0x3D                  # FORMAT-
	'FORMAT+'             0x3C                  # FORMAT+
# only IR 365:
	'INDEX'               0x34                  # INDEX
	'CLOCK'               0x36                  # CLOCK
	'SIZE'                0x22                  # SIZE
	'MIX'                 0x2B                  # MIX
	'HIDDEN'              0x28                  # HIDDEN
	'STOP'                0x35                  # STOP
	'<-O->'               0x24                  # <-o->
	'CONTRAST'            0x23                  # CONTRAST
	'BALANCE'             0x25                  # BALANCE
	'BASS'                0x21                  # BASS
#         TONE                     0x20
# Saba & Thomson:
	'PROG-'               0x20                  # PROG-
	'PROG+'               0x1F                  # PROG+
      end codes

end remote
