lv_gpu_n9h30_ge2d.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-3-29 Wayne The first version
  9. */
  10. #ifndef LV_GPU_N9H_GE2D_H
  11. #define LV_GPU_N9H_GE2D_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /*********************
  16. * INCLUDES
  17. *********************/
  18. #include "../../misc/lv_color.h"
  19. #include "../../hal/lv_hal_disp.h"
  20. #include "../sw/lv_draw_sw.h"
  21. /*********************
  22. * DEFINES
  23. *********************/
  24. /**********************
  25. * TYPEDEFS
  26. **********************/
  27. struct _lv_disp_drv_t;
  28. typedef lv_draw_sw_ctx_t lv_draw_n9h30_ge2d_ctx_t;
  29. /**********************
  30. * GLOBAL PROTOTYPES
  31. **********************/
  32. /**
  33. * Turn on the peripheral and set output color mode, this only needs to be done once
  34. */
  35. void lv_draw_n9h30_ge2d_init(void);
  36. void lv_draw_n9h30_ge2d_ctx_init(struct _lv_disp_drv_t *drv, lv_draw_ctx_t *draw_ctx);
  37. void lv_draw_n9h30_ge2d_ctx_deinit(struct _lv_disp_drv_t *drv, lv_draw_ctx_t *draw_ctx);
  38. void lv_draw_n9h30_ge2d_blend(lv_draw_ctx_t *draw_ctx, const lv_draw_sw_blend_dsc_t *dsc);
  39. void lv_gpu_n9h30_ge2d_wait_cb(lv_draw_ctx_t *draw_ctx);
  40. /**********************
  41. * MACROS
  42. **********************/
  43. #ifdef __cplusplus
  44. } /*extern "C"*/
  45. #endif
  46. #endif /*LV_GPU_N9H_GE2D_H*/