display_indev.h 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef DISPLAY_INDEV_H_
  6. #define DISPLAY_INDEV_H_
  7. #include <stdio.h>
  8. #include <inttypes.h>
  9. #include "lvgl/lv_misc/lv_color.h"
  10. #include "lvgl/lv_hal/lv_hal_indev.h"
  11. extern void
  12. display_init(void);
  13. extern void
  14. display_deinit(void);
  15. extern void
  16. display_flush(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
  17. const lv_color_t *color);
  18. extern bool
  19. display_input_read(lv_indev_data_t *data);
  20. extern void
  21. display_vdb_write(void *buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
  22. lv_color_t *color, lv_opa_t opa);
  23. void
  24. display_fill(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
  25. const lv_color_t *color);
  26. void
  27. display_map(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
  28. const lv_color_t *color);
  29. extern uint32_t
  30. time_get_ms(void);
  31. #endif