MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / TransmitOSDString

Method TransmitOSDString

src/libcec/implementations/CECCommandHandler.cpp:1080–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080bool CCECCommandHandler::TransmitOSDString(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_display_control duration, const char *strMessage, bool bIsReply)
1081{
1082 cec_command command;
1083 cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_SET_OSD_STRING);
1084 command.parameters.PushBack((uint8_t)duration);
1085
1086 size_t iLen = strlen(strMessage);
1087 if (iLen > 13) iLen = 13;
1088
1089 for (size_t iPtr = 0; iPtr < iLen; iPtr++)
1090 command.parameters.PushBack(strMessage[iPtr]);
1091
1092 return Transmit(command, false, bIsReply);
1093}
1094
1095bool CCECCommandHandler::TransmitPhysicalAddress(const cec_logical_address iInitiator, uint16_t iPhysicalAddress, cec_device_type type, bool bIsReply)
1096{

Callers

nothing calls this directly

Calls 1

PushBackMethod · 0.45

Tested by

no test coverage detected