| 31 | }; |
| 32 | |
| 33 | static 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 | |
| 41 | extern "C" { |
| 42 |
no test coverage detected