Skip to content

Commit

Permalink
Add some more opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Varagnat committed Jan 30, 2021
1 parent c558e71 commit 45440b1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
26 changes: 26 additions & 0 deletions src/HdmiCecProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,32 @@ namespace HdmiCec
return "SystemAudioModeStatus";
case OpCode_SetAudioRate:
return "SetAudioRate";
case OpCode_ReportShortAudioDescriptor:
return "ReportShortAudioDescriptor";
case OpCode_RequestShortAudioDescriptor:
return "RequestShortAudioDescriptor";
case OpCode_GiveFeatures:
return "GiveFeatures";
case OpCode_ReportFeatures:
return "ReportFeatures";
case OpCode_RequestCurrentLatency:
return "RequestCurrentLatency";
case OpCode_ReportCurrentLatency:
return "ReportCurrentLatency";
case OpCode_InitiateArc:
return "InitiateArc";
case OpCode_ReportArcInitiated:
return "ReportArcInitiated";
case OpCode_ReportArcTerminated:
return "ReportArcTerminated";
case OpCode_RequestArcInitiation:
return "RequestArcInitiation";
case OpCode_RequestArcTermination:
return "RequestArcTermination";
case OpCode_TerminateArc:
return "TerminateArc";
case OpCode_CDCMessage:
return "CDCMessage";
default:
break;
}
Expand Down
15 changes: 14 additions & 1 deletion src/HdmiCecProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,20 @@ namespace HdmiCec
OpCode_SetSystemAudioMode = 0x72,
OpCode_SystemAudioModeRequest = 0x70,
OpCode_SystemAudioModeStatus = 0x7e,
OpCode_SetAudioRate = 0x9a
OpCode_SetAudioRate = 0x9a,
OpCode_ReportShortAudioDescriptor = 0xa3,
OpCode_RequestShortAudioDescriptor = 0xa4,
OpCode_GiveFeatures = 0xa5,
OpCode_ReportFeatures = 0xa6,
OpCode_RequestCurrentLatency = 0xa7,
OpCode_ReportCurrentLatency = 0xa8,
OpCode_InitiateArc = 0xc0,
OpCode_ReportArcInitiated = 0xc1,
OpCode_ReportArcTerminated = 0xc2,
OpCode_RequestArcInitiation = 0xc3,
OpCode_RequestArcTermination = 0xc4,
OpCode_TerminateArc = 0xc5,
OpCode_CDCMessage = 0xf8
};

const char* GetOpCodeString( OpCode opCode );
Expand Down

0 comments on commit 45440b1

Please sign in to comment.