| 1078 | } |
| 1079 | |
| 1080 | bool 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 | |
| 1095 | bool CCECCommandHandler::TransmitPhysicalAddress(const cec_logical_address iInitiator, uint16_t iPhysicalAddress, cec_device_type type, bool bIsReply) |
| 1096 | { |