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

Method TransmitPowerState

src/libcec/implementations/CECCommandHandler.cpp:1125–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125bool CCECCommandHandler::TransmitPowerState(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_power_status state, bool bIsReply)
1126{
1127 cec_command command;
1128 cec_command::Format(command, iInitiator, iDestination, CEC_OPCODE_REPORT_POWER_STATUS);
1129 command.parameters.PushBack((uint8_t) state);
1130
1131 return Transmit(command, false, bIsReply);
1132}
1133
1134bool CCECCommandHandler::TransmitVendorID(const cec_logical_address iInitiator, const cec_logical_address UNUSED(iDestination), uint64_t iVendorId, bool bIsReply)
1135{

Calls 1

PushBackMethod · 0.45

Tested by

no test coverage detected