idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
panel_factory.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Chris Leishman
3
4#pragma once
5
13#include <idfxx/error>
14#include <idfxx/lcd/panel>
15
16#include <esp_lcd_panel_dev.h>
17#include <esp_lcd_panel_io.h>
18
20
21namespace idfxx::lcd::detail {
22
26using panel_factory =
27 esp_err_t (*)(esp_lcd_panel_io_handle_t io, const esp_lcd_panel_dev_config_t* config, esp_lcd_panel_handle_t* ret);
28
44[[nodiscard]] result<esp_lcd_panel_handle_t>
45make_panel_handle(panel_factory factory, esp_lcd_panel_io_handle_t io_handle, const panel::config& config);
46
47} // namespace idfxx::lcd::detail
48
int esp_err_t
Definition error.hpp:35
struct esp_lcd_panel_t * esp_lcd_panel_handle_t
Definition panel.hpp:30