/** * @file lv_ctr_disp.h * */ #if 1 #ifndef LV_CTR_DISP_H #define LV_CTR_DISP_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #if defined(LV_LVGL_H_INCLUDE_SIMPLE) #include "lvgl.h" #else #include "lvgl/lvgl.h" #endif /********************* * DEFINES *********************/ #if LV_COLOR_DEPTH == 32 // same as 24-bit - translation from ARGB8888 to RGBA8888 would require software translation #define CTR_LV_COLOR_FORMAT LV_COLOR_FORMAT_RGB888 #define CTR_TEX_COLOR_FORMAT GPU_RGB8 #define CTR_TR_IN_COLOR_FORMAT GX_TRANSFER_FMT_RGB8 #define CTR_TR_OUT_COLOR_FORMAT GX_TRANSFER_FMT_RGB8 #elif LV_COLOR_DEPTH == 24 #define CTR_LV_COLOR_FORMAT LV_COLOR_FORMAT_RGB888 #define CTR_TEX_COLOR_FORMAT GPU_RGB8 #define CTR_TR_IN_COLOR_FORMAT GX_TRANSFER_FMT_RGB8 #define CTR_TR_OUT_COLOR_FORMAT GX_TRANSFER_FMT_RGB8 #elif LV_COLOR_DEPTH == 16 #define CTR_LV_COLOR_FORMAT LV_COLOR_FORMAT_RGB565 #define CTR_TEX_COLOR_FORMAT GPU_RGB565 #define CTR_TR_IN_COLOR_FORMAT GX_TRANSFER_FMT_RGB565 #define CTR_TR_OUT_COLOR_FORMAT GX_TRANSFER_FMT_RGB565 #else #error "Not supported LV_COLOR_DEPTH" #endif /********************** * TYPEDEFS **********************/ /********************** * GLOBAL PROTOTYPES **********************/ /* Initialize low level display driver */ void lv_ctr_disp_init(void); /* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL */ void disp_enable_update(void); /* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL */ void disp_disable_update(void); /********************** * MACROS **********************/ #ifdef __cplusplus } /*extern "C"*/ #endif #endif /*LV_CTR_DISP_H*/ #endif /*Disable/Enable content*/