- Added `tt::hal::Device` and functions (de)register devices and search for them. - Refactored apps: `Power` and `Display` settings apps now use the device API to find devices. - Implemented the new API for all existing drivers for all devices, including the simulator. - Updated HAL Configuration to return `std::shared_ptr` instead of raw pointers. - Added test project for headless tests and implemented tests for the new code.
24 lines
332 B
C++
24 lines
332 B
C++
#pragma once
|
|
|
|
#include "Device.h"
|
|
|
|
#include <lvgl.h>
|
|
|
|
namespace tt::hal {
|
|
|
|
class Display;
|
|
|
|
class Touch : public Device {
|
|
|
|
public:
|
|
|
|
Type getType() const override { return Type::SdCard; }
|
|
|
|
virtual bool start(lv_display_t* display) = 0;
|
|
virtual bool stop() = 0;
|
|
|
|
virtual lv_indev_t* _Nullable getLvglIndev() = 0;
|
|
};
|
|
|
|
}
|