MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / findValidDisplayDevice

Function findValidDisplayDevice

TactilityC/Source/tt_hal_display.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33static std::shared_ptr<tt::hal::display::DisplayDevice> findValidDisplayDevice(tt::hal::Device::Id id) {
34 auto device = tt::hal::findDevice(id);
35 if (device == nullptr || device->getType() != tt::hal::Device::Type::Display) {
36 return nullptr;
37 }
38 return std::reinterpret_pointer_cast<tt::hal::display::DisplayDevice>(device);
39}
40
41extern "C" {
42

Callers 2

Calls 2

findDeviceFunction · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected