29 #ifndef HDMI_CCEC_OPCODE_HPP_
30 #define HDMI_CCEC_OPCODE_HPP_
35 #include "ccec/CECFrame.hpp"
38 #include "DataBlock.hpp"
43 extern "C" const char *GetOpName(Op_t op);
50 INACTIVE_SOURCE = 0x9D,
51 REQUEST_ACTIVE_SOURCE = 0x85,
52 ROUTING_CHANGE = 0x80,
53 ROUTING_INFORMATION = 0x81,
54 SET_STREAM_PATH = 0x86,
59 RECORD_TV_SCREEN = 0X0F,
60 CLEAR_ANALOGUE_TIMER = 0X33,
61 CLEAR_DIGITAL_TIMER = 0X99,
62 CLEAR_EXTERNAL_TIMER = 0XA1,
63 SET_ANALOG_TIMER = 0X34,
64 SET_DIGITAL_TIMER = 0X97,
65 SET_EXTERNAL_TIMER = 0XA2,
66 SET_TIMER_PROGRAM_TITLE = 0X67,
67 TIMER_CLEARED_STATUS = 0X43,
69 GET_CEC_VERSION = 0x9F,
71 GIVE_PHYSICAL_ADDRESS = 0x83,
72 GET_MENU_LANGUAGE = 0X91,
73 REPORT_PHYSICAL_ADDRESS = 0x84,
74 SET_MENU_LANGUAGE = 0X32,
77 GIVE_DECK_STATUS = 0X1A,
79 GIVE_TUNER_DEVICE_STATUS = 0X08,
80 SELECT_ANALOGUE_SERVICE = 0X92,
81 SELECT_DIGITAL_SERVICE = 0X93,
82 TUNER_DEVICE_STATUS = 0X07,
83 TUNER_STEP_DECREMENT = 0X06,
84 TUNER_STEP_INCREMENT = 0X05,
85 DEVICE_VENDOR_ID = 0x87,
86 GIVE_DEVICE_VENDOR_ID = 0x8C,
87 VENDOR_COMMAND = 0X89,
88 VENDOR_COMMAND_WITH_ID = 0XA0,
89 VENDOR_REMOTE_BUTTON_DOWN = 0X8A,
90 VENDOR_REMOTE_BUTTON_UP = 0X8B,
91 SET_OSD_STRING = 0x64,
96 USER_CONTROL_PRESSED = 0X44,
97 USER_CONTROL_RELEASED = 0X45,
98 GIVE_DEVICE_POWER_STATUS = 0x8F,
99 REPORT_POWER_STATUS = 0x90,
100 FEATURE_ABORT = 0x00,
102 GIVE_AUDIO_STATUS = 0X71,
103 GIVE_SYSTEM_AUDIO_MODE_STATUS = 0X7D,
104 REPORT_AUDIO_STATUS = 0X7A,
105 REPORT_SHORT_AUDIO_DESCRIPTOR = 0XA3,
106 REQUEST_SHORT_AUDIO_DESCRIPTOR = 0XA4,
107 SET_SYSTEM_AUDIO_MODE = 0X72,
108 SYSTEM_AUDIO_MODE_REQUEST = 0X70,
109 SYSTEM_AUDIO_MODE_STATUS = 0X7E,
110 SET_AUDIO_RATE = 0X9A,
112 REPORT_ARC_INITIATED = 0XC1,
113 REPORT_ARC_TERMINATED = 0XC2,
114 REQUEST_ARC_INITIATION = 0XC3,
115 REQUEST_ARC_TERMINATION = 0XC4,
116 TERMINATE_ARC = 0XC5,
130 OpCode(Op_t opCode) : opCode_(opCode) {};
131 OpCode(
const CECFrame &frame,
int startPos) : opCode_(frame.at(startPos)) {
134 if (opCode_ != POLLING) {
135 frame.append(opCode_);
139 virtual Op_t opCode(
void)
const {
return opCode_;};
140 virtual std::string toString(
void)
const {
return GetOpName(opCode_);}
141 virtual void print(
void)
const {
142 CCEC_LOG( LOG_DEBUG ,
"Opcode : %s \n",toString().c_str());