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

Method GetDeviceInformation

src/libcec/CECProcessor.cpp:712–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712bool CCECProcessor::GetDeviceInformation(const char *strPort, libcec_configuration *config, uint32_t iTimeoutMs /* = CEC_DEFAULT_CONNECT_TIMEOUT */)
713{
714 if (!OpenConnection(strPort, CEC_SERIAL_DEFAULT_BAUDRATE, iTimeoutMs, false))
715 return false;
716
717 config->iFirmwareVersion = m_communication->GetFirmwareVersion();
718 config->iPhysicalAddress = m_communication->GetPhysicalAddress();
719 config->iFirmwareBuildDate = m_communication->GetFirmwareBuildDate();
720 config->adapterType = m_communication->GetAdapterType();
721
722 Close();
723
724 return true;
725}
726
727bool CCECProcessor::TransmitPendingActiveSourceCommands(void)
728{

Callers

nothing calls this directly

Calls 5

CloseFunction · 0.85
GetFirmwareVersionMethod · 0.45
GetPhysicalAddressMethod · 0.45
GetFirmwareBuildDateMethod · 0.45
GetAdapterTypeMethod · 0.45

Tested by

no test coverage detected