-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEC_Codes.h
177 lines (169 loc) · 5.76 KB
/
CEC_Codes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#ifndef CEC_CODES_H_INCLUDED
#define CEC_CODES_H_INCLUDED
#define CEC_FEATURE_ABORT 0x00
#define CEC_OTP_IMAGE_ON 0x04
#define CEC_TUNER_UP 0x05
#define CEC_TUNER_DOWN 0x06
#define CEC_TUNER_STATUS 0x07
#define CEC_TUNER_STATUS_REQ 0x08
#define CEC_OTR_REC_ON 0x09
#define CEC_OTR_REC_STATUS 0x0A
#define CEC_OTR_REC_OFF 0x0B
#define CEC_OTP_TEXT_ON 0x0D
#define CEC_OTR_REC_SCREEN 0x0F
#define CEC_DECK_REQ_STATUS 0x1A
#define CEC_DECK_STATUS 0x1B
#define CEC_INFO_LANG 0x32
#define CEC_TIMER_CLEAR_ANALOG 0x33
#define CEC_TIMER_SET_ANALOG 0x34
#define CEC_TIMER_STATUS 0x35
#define CEC_STANDBY 0x36
#define CEC_DECK_PLAY 0x41
#define CEC_DECK_CTRL 0x42
#define CEC_TIMER_STATUS_CLEARED 0x43
#define CEC_MENU_UC_PRESSED 0x44
#define CEC_RCP_PRESSED 0x44
#define CEC_AUDIO_UC_PRESSED 0x44
#define CEC_MENU_UC_RELEASED 0x45
#define CEC_RCP_RELEASED 0x45
#define CEC_AUDIO_UC_RELEASED 0x45
#define CEC_OSD_REQ_OSD 0x46
#define CEC_OSD_SET_OSD 0x47
#define CEC_OSD_SEND 0x64
#define CEC_TIMER_SET_TITLE 0x67
#define CEC_AUDIO_MODE_REQ 0x70
#define CEC_AUDIO_STATUS_REQ 0x71
#define CEC_AUDIO_MODE_SET 0x72
#define CEC_AUDIO_STATUS 0x7A
#define CEC_Give_System_Audio_Mode_Status 0x7D
#define CEC_AUDIO_MODE 0x7E
#define CEC_ROUTING_CHANGED 0x80
#define CEC_ROUTING_INFO 0x81
#define CEC_OTP_ACTIVE_SRC 0x82
#define CEC_ROUTING_ACTIVE 0x82
#define CEC_INFO_REQ_PHYS_ADDR 0x83
#define CEC_INFO_PHYS_ADDR 0x84
#define CEC_ROUTING_REQ_ACTIVE 0x85
#define CEC_ROUTING_REQ_PATH 0x86
#define CEC_VENDOR_ID 0x87
#define CEC_VENDOR_COMMAND 0x89
#define CEC_VENDOR_REMOTE_BDOWN 0x8A
#define CEC_VENDOR_REMOTE_BUP 0x8B
#define CEC_VENDOR_ID_REQ 0x8C
#define CEC_MENU_REQ 0x8D
#define CEC_MENU_STATUS 0x8E
#define CEC_POWER_REQ_STATUS 0x8F
#define CEC_POWER_STATUS 0x90
#define CEC_INFO_LANG_REQ 0x91
#define CEC_TUNER_SELECT_ANALOG 0x92
#define CEC_TUNER_SELECT_DIGITAL 0x93
#define CEC_TIMER_SET_DIGITAL 0x97
#define CEC_TIMER_CLEAR_DIGITAL 0x99
#define CEC_AUDIO_RATE 0x9A
#define CEC_ROUTING_INACTIVE 0x9D
#define CEC_INFO_VERSION 0x9E
#define CEC_VENDOR_CEC_VERSION 0x9E
#define CEC_INFO_VERSION_REQ 0x9F
#define CEC_VENDOR_CEC_VERSION_REQ 0x9F
#define CEC_VENDOR_COMMAND_ID 0xA0
#define CEC_TIMER_CLEAR_EXTERNAL 0xA1
#define CEC_TIMER_SET_EXTERNAL 0xA2
#define CEC_BROADCAST 0xf
#define CEC_ABORT_UNRECOGNIZED 0
#define CEC_ABORT_NOT_IN_CORRECT_MODE 1
#define CEC_ABORT_CANNOT_PROVIDE_SOURCE 2
#define CEC_ABORT_INVALID_OPERAND 3
#define CEC_ABORT_REFUSED 4
/*#define CEC_POWER_STATUS_ON 0x00
#define CEC_POWER_STATUS_STANDBY 0x01
#define CEC_POWER_STATUS_TRANSITION_STANDBY_TO_ON 0x02
#define CEC_POWER_STATUS_TRANSITION_ON_TO_STANDBY 0x03*/
#define CEC_UC_CODE_SELECT 0X00
#define CEC_UC_CODE_UP 0X01
#define CEC_UC_CODE_DOWN 0X02
#define CEC_UC_CODE_LEFT 0X03
#define CEC_UC_CODE_RIGHT 0X04
#define CEC_UC_CODE_RIGHT_UP 0X05
#define CEC_UC_CODE_RIGHT_DOWN 0X06
#define CEC_UC_CODE_LEFT_UP 0X07
#define CEC_UC_CODE_LEFT_DOWN 0X08
#define CEC_UC_CODE_ROOT_MENU 0X09
#define CEC_UC_CODE_SETUP_MENU 0X0A
#define CEC_UC_CODE_CONTENTS_MENU 0X0B
#define CEC_UC_CODE_FAVORITE_MENU 0X0C
#define CEC_UC_CODE_EXIT 0X0D
//0X0E - 0X1F Reserved
#define CEC_UC_CODE_0 0X20
#define CEC_UC_CODE_1 0X21
#define CEC_UC_CODE_2 0X22
#define CEC_UC_CODE_3 0X23
#define CEC_UC_CODE_4 0X24
#define CEC_UC_CODE_5 0X25
#define CEC_UC_CODE_6 0X26
#define CEC_UC_CODE_7 0X27
#define CEC_UC_CODE_8 0X28
#define CEC_UC_CODE_9 0X29
#define CEC_UC_CODE_DOT 0X2A
#define CEC_UC_CODE_ENTER 0X2B
#define CEC_UC_CODE_CLEAR 0X2C
//0X2D - 0X2E Reserved
#define CEC_UC_CODE_NEXT_FAVORITE 0X2F
#define CEC_UC_CODE_CHANNEL_UP 0X30
#define CEC_UC_CODE_CHANNEL_DOWN 0X31
#define CEC_UC_CODE_PREVIOUS_CHANNEL 0X32
#define CEC_UC_CODE_SOUND_SELECT 0X33
#define CEC_UC_CODE_INPUT_SELECT 0X34
#define CEC_UC_CODE_DISPLAY_INFORMATION 0X35
#define CEC_UC_CODE_HELP 0X36
#define CEC_UC_CODE_PAGE_UP 0X37
#define CEC_UC_CODE_PAGE_DOWN 0X38
//0X39 - 0X3F Reserved
#define CEC_UC_CODE_POWER 0X40
#define CEC_UC_CODE_VOLUME_UP 0X41
#define CEC_UC_CODE_VOLUME_DOWN 0X42
#define CEC_UC_CODE_MUTE 0X43
#define CEC_UC_CODE_PLAY 0X44
#define CEC_UC_CODE_STOP 0X45
#define CEC_UC_CODE_PAUSE 0X46
#define CEC_UC_CODE_RECORD 0X47
#define CEC_UC_CODE_REWIND 0X48
#define CEC_UC_CODE_FAST_FORWARD 0X49
#define CEC_UC_CODE_EJECT 0X4A
#define CEC_UC_CODE_FORWARD 0X4B
#define CEC_UC_CODE_BACKWARD 0X4C
#define CEC_UC_CODE_STOP_RECORD 0X4D
#define CEC_UC_CODE_PAUSE_RECORD 0X4E
#define CEC_UC_CODE_RESERVED 0X4F
#define CEC_UC_CODE_ANGLE 0X50
#define CEC_UC_CODE_SUB_PICTURE 0X51
#define CEC_UC_CODE_VIDEO_ON_DEMAND 0X52
#define CEC_UC_CODE_ELECTRONIC_PROGRAM_GUIDE 0X53
#define CEC_UC_CODE_TIMER_PROGRAMMING 0X54
#define CEC_UC_CODE_INITIAL_CONFIGURATION 0X55
//0X56 - 0X5F Reserved
#define CEC_UC_CODE_PLAY_FUNCTION 0X60
#define CEC_UC_CODE_PAUSE_PLAY_FUNCTION 0X61
#define CEC_UC_CODE_RECORD_FUNCTION 0X62
#define CEC_UC_CODE_PAUSE_RECORD_FUNCTION 0X63
#define CEC_UC_CODE_STOP_FUNCTION 0X64
#define CEC_UC_CODE_MUTE_FUNCTION 0X65
#define CEC_UC_CODE_RESTORE_VOLUME_FUNCTION 0X66
#define CEC_UC_CODE_TUNE_FUNCTION 0X67
#define CEC_UC_CODE_SELECT_MEDIA_FUNCTION 0X68
#define CEC_UC_CODE_SELECT_AV_INPUT_FUNCTION 0X69
#define CEC_UC_CODE_SELECT_AUDIO_INPUT_FUNCTION 0X6A
#define CEC_UC_CODE_POWER_TOGGLE_FUNCTION 0X6B
#define CEC_UC_CODE_POWER_OFF_FUNCTION 0X6C
#define CEC_UC_CODE_POWER_ON_FUNCTION 0X6D
//0X6E – 0X70 Reserved
#define CEC_UC_CODE_F1_BLUE 0X71
#define CEC_UC_CODE_F2_RED 0X72
#define CEC_UC_CODE_F3_GREEN 0X73
#define CEC_UC_CODE_F4_YELLOW 0X74
#define CEC_UC_CODE_F5 0X75
#define CEC_UC_CODE_DATA 0X76
//0X77 – 0XFF Reserved
#define CEC_MENU_STATUS_ACTIVATED 0
#define CEC_MENU_STATUS_DEACTIVATED 1
#define CEC_MENU_STATUS_QUERY 2
#endif // CEC_CODES_H_INCLUDED