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

Method TransmitActiveSource

src/libcec/implementations/CECCommandHandler.cpp:1032–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032bool CCECCommandHandler::TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress, bool bIsReply)
1033{
1034 cec_command command;
1035 cec_command::Format(command, iInitiator, CECDEVICE_BROADCAST, CEC_OPCODE_ACTIVE_SOURCE);
1036 command.parameters.PushBack((uint8_t) ((iPhysicalAddress >> 8) & 0xFF));
1037 command.parameters.PushBack((uint8_t) (iPhysicalAddress & 0xFF));
1038
1039 return Transmit(command, false, bIsReply);
1040}
1041
1042bool CCECCommandHandler::TransmitCECVersion(const cec_logical_address iInitiator, const cec_logical_address iDestination, cec_version cecVersion, bool bIsReply)
1043{

Callers 5

HandleSetStreamPathMethod · 0.45
ActivateSourceMethod · 0.45
ActivateSourceMethod · 0.45

Calls 1

PushBackMethod · 0.45

Tested by

no test coverage detected