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

Function GetDevicePowerStatus

src/dotnetlib/LibCecSharp.cpp:372–378  ·  view source on GitHub ↗

Get the power status of the device with the given logical address. The logical address of the device to get the power status for. The power status or CEC_POWER_STATUS_UNKNOWN if it wasn't found.

Source from the content-addressed store, hash-verified

370 /// <param name="logicalAddress">The logical address of the device to get the power status for.</param>
371 /// <returns>The power status or CEC_POWER_STATUS_UNKNOWN if it wasn't found.</returns>
372 CecPowerStatus GetDevicePowerStatus(CecLogicalAddress logicalAddress)
373 {
374 if (!m_libCec) {
375 return CecPowerStatus::Unknown;
376 }
377 return (CecPowerStatus) m_libCec->GetDevicePowerStatus((cec_logical_address) logicalAddress);
378 }
379
380 /// <summary>
381 /// Tell libCEC to poll for active devices on the bus.

Callers

nothing calls this directly

Calls 1

GetDevicePowerStatusMethod · 0.45

Tested by

no test coverage detected