esp_lcd_panel_dev.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdbool.h>
  8. #include <stdint.h>
  9. #include "esp_err.h"
  10. #include "esp_lcd_types.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /**
  15. * @brief Configuration structure for panel device
  16. */
  17. typedef struct {
  18. int reset_gpio_num; /*!< GPIO used to reset the LCD panel, set to -1 if it's not used */
  19. union {
  20. lcd_rgb_element_order_t color_space; /*!< @deprecated Set RGB color space, please use rgb_ele_order instead */
  21. lcd_rgb_element_order_t rgb_endian; /*!< @deprecated Set RGB data endian, please use rgb_ele_order instead */
  22. lcd_rgb_element_order_t rgb_ele_order; /*!< Set RGB element order, RGB or BGR */
  23. };
  24. lcd_rgb_data_endian_t data_endian; /*!< Set the data endian for color data larger than 1 byte */
  25. uint32_t bits_per_pixel; /*!< Color depth, in bpp */
  26. struct {
  27. uint32_t reset_active_high: 1; /*!< Setting this if the panel reset is high level active */
  28. } flags; /*!< LCD panel config flags */
  29. void *vendor_config; /*!< vendor specific configuration, optional, left as NULL if not used */
  30. } esp_lcd_panel_dev_config_t;
  31. #ifdef __cplusplus
  32. }
  33. #endif