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

Function ProcessCommandPA

src/cec-client/cec-client.cpp:591–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591bool ProcessCommandPA(ICECAdapter *parser, const std::string &command, std::string &arguments)
592{
593 if (command == "pa")
594 {
595 std::string strB1, strB2;
596 uint8_t iB1, iB2;
597 if (GetWord(arguments, strB1) && HexStrToInt(strB1, iB1) &&
598 GetWord(arguments, strB2) && HexStrToInt(strB2, iB2))
599 {
600 uint16_t iPhysicalAddress = ((uint16_t)iB1 << 8) + iB2;
601 parser->SetPhysicalAddress(iPhysicalAddress);
602 return true;
603 }
604 }
605
606 return false;
607}
608
609bool ProcessCommandOSD(ICECAdapter *parser, const std::string &command, std::string &arguments)
610{

Callers 1

ProcessConsoleCommandFunction · 0.85

Calls 3

GetWordFunction · 0.85
HexStrToIntFunction · 0.70
SetPhysicalAddressMethod · 0.45

Tested by

no test coverage detected