本文整理汇总了C++中CCECBusDevice::GetPowerStatus方法的典型用法代码示例。如果您正苦于以下问题:C++ CCECBusDevice::GetPowerStatus方法的具体用法?C++ CCECBusDevice::GetPowerStatus怎么用?C++ CCECBusDevice::GetPowerStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCECBusDevice
的用法示例。
在下文中一共展示了CCECBusDevice::GetPowerStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetDevicePowerStatus
cec_power_status CCECClient::GetDevicePowerStatus(const cec_logical_address iAddress)
{
CCECBusDevice *device = m_processor->GetDevice(iAddress);
if (device)
return device->GetPowerStatus(GetPrimaryLogicalAdddress());
return CEC_POWER_STATUS_UNKNOWN;
}
示例2: HandleFeatureAbort
bool CSLCommandHandler::HandleFeatureAbort(const cec_command &command)
{
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
if (primary->GetPowerStatus(false) == CEC_POWER_STATUS_ON && !m_bPowerStateReset && !m_bSLEnabled)
{
m_bPowerStateReset = true;
primary->SetPowerStatus(CEC_POWER_STATUS_STANDBY);
}
return CCECCommandHandler::HandleFeatureAbort(command);
}
示例3: Process
void* CImageViewOnCheck::Process(void)
{
CCECBusDevice* tv = m_handler->m_processor->GetDevice(CECDEVICE_TV);
cec_power_status status(CEC_POWER_STATUS_UNKNOWN);
while (status != CEC_POWER_STATUS_ON)
{
m_event.Wait(TV_ON_CHECK_TIME_MS);
if (!IsRunning())
return NULL;
status = tv->GetPowerStatus(m_handler->m_busDevice->GetLogicalAddress());
if (status != CEC_POWER_STATUS_ON &&
status != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON)
{
CLockObject lock(m_handler->m_mutex);
tv->OnImageViewOnSent(false);
m_handler->m_iActiveSourcePending = GetTimeMs();
}
}
return NULL;
}