]> sigrok.org Git - libsigrokdecode.git/blob - decoders/ir_rc5/lists.py
Typo preventing "Personal preference settings" & "Display user info on screen" from...
[libsigrokdecode.git] / decoders / ir_rc5 / lists.py
1 ##
2 ## This file is part of the libsigrokdecode project.
3 ##
4 ## Copyright (C) 2014 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
18 ##
19
20 # Systems/addresses (0..31). Items that are not listed are reserved/unknown.
21 system = {
22     0: ['TV receiver 1', 'TV1'],
23     1: ['TV receiver 2', 'TV2'],
24     2: ['Teletext', 'Txt'],
25     3: ['Extension to TV1 and TV2', 'Ext TV1/TV2'],
26     4: ['LaserVision player', 'LV'],
27     5: ['Video cassette recorder 1', 'VCR1'],
28     6: ['Video cassette recorder 2', 'VCR2'],
29     7: ['Experimental', 'Exp'],
30     8: ['Satellite TV receiver 1', 'Sat1'],
31     9: ['Extension to VCR1 and VCR2', 'Ext VCR1/VCR2'],
32     10: ['Satellite TV receiver 2', 'Sat2'],
33     12: ['Compact disc video player', 'CD-Video'],
34     13: ['Camcorder', 'Cam'],
35     14: ['Photo on compact disc player', 'CD-Photo'],
36     16: ['Audio preamplifier 1', 'Preamp1'],
37     17: ['Radio tuner', 'Tuner'],
38     18: ['Analog cassette recoder 1', 'Rec1'],
39     19: ['Audio preamplifier 2', 'Preamp2'],
40     20: ['Compact disc player', 'CD'],
41     21: ['Audio stack or record player', 'Combi'],
42     22: ['Audio satellite', 'Sat'],
43     23: ['Analog cassette recoder 2', 'Rec2'],
44     26: ['Compact disc recorder', 'CD-R'],
45     29: ['Lighting 1', 'Light1'],
46     30: ['Lighting 2', 'Light2'],
47     31: ['Telephone', 'Phone'],
48 }
49
50 digits = {
51     0: ['0', '0'],
52     1: ['1', '1'],
53     2: ['2', '2'],
54     3: ['3', '3'],
55     4: ['4', '4'],
56     5: ['5', '5'],
57     6: ['6', '6'],
58     7: ['7', '7'],
59     8: ['8', '8'],
60     9: ['9', '9'],
61 }
62
63 # Commands (0..63 for RC-5, and 0..127 for Extended RC-5).
64 # Items that are not listed are reserved/unknown.
65 command = {
66     'TV': dict(list(digits.items()) + list({
67         10: ['-/--', '-/--'],
68         11: ['Channel/program', 'Ch/P'],
69         12: ['Standby', 'StBy'],
70         13: ['Mute', 'M'],
71         14: ['Personal preferences', 'PP'],
72         15: ['Display', 'Disp'],
73         16: ['Volume up', 'Vol+'],
74         17: ['Volume down', 'Vol-'],
75         18: ['Brightness up', 'Br+'],
76         19: ['Brightness down', 'Br-'],
77         20: ['Saturation up', 'S+'],
78         21: ['Saturation down', 'S-'],
79         32: ['Program up', 'P+'],
80         33: ['Program down', 'P-'],
81     }.items())),
82     'VCR': dict(list(digits.items()) + list({
83         10: ['-/--', '-/--'],
84         12: ['Standby', 'StBy'],
85         32: ['Program up', 'P+'],
86         33: ['Program down', 'P-'],
87         50: ['Fast rewind', 'FRW'],
88         52: ['Fast forward', 'FFW'],
89         53: ['Play', 'Pl'],
90         54: ['Stop', 'St'],
91         55: ['Recording', 'Rec'],
92     }.items())),
93 }