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

end remote
