Home
last modified time | relevance | path

Searched refs:disp_drv (Results 1 – 16 of 16) sorted by relevance

/lvgl-3.7.0/examples/porting/
Dlv_port_disp_template.c37 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
107 static lv_disp_drv_t disp_drv; /*Descriptor of a display driver*/
108 lv_disp_drv_init(&disp_drv); /*Basic initialization*/
113 disp_drv.hor_res = MY_DISP_HOR_RES;
114 disp_drv.ver_res = MY_DISP_VER_RES;
117 disp_drv.flush_cb = disp_flush;
120 disp_drv.draw_buf = &draw_buf_dsc_1;
131 lv_disp_drv_register(&disp_drv);
163 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
181 lv_disp_flush_ready(disp_drv);
/lvgl-3.7.0/tests/src/
Dlv_test_init.c14 static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
40 static lv_disp_drv_t disp_drv; in hal_init() local
41 lv_disp_drv_init(&disp_drv); in hal_init()
42 disp_drv.draw_buf = &draw_buf; in hal_init()
43 disp_drv.flush_cb = dummy_flush_cb; in hal_init()
44 disp_drv.hor_res = HOR_RES; in hal_init()
45 disp_drv.ver_res = VER_RES; in hal_init()
46 lv_disp_drv_register(&disp_drv); in hal_init()
67 static void dummy_flush_cb(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p) in dummy_flush_cb() argument
74 lv_disp_flush_ready(disp_drv); in dummy_flush_cb()
/lvgl-3.7.0/src/hal/
Dlv_hal_disp.h107 … void (*flush_cb)(struct _lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p);
111 void (*rounder_cb)(struct _lv_disp_drv_t * disp_drv, lv_area_t * area);
116 …void (*set_px_cb)(struct _lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x,…
119 void (*clear_cb)(struct _lv_disp_drv_t * disp_drv, uint8_t * buf, uint32_t size);
123 void (*monitor_cb)(struct _lv_disp_drv_t * disp_drv, uint32_t time, uint32_t px);
128 void (*wait_cb)(struct _lv_disp_drv_t * disp_drv);
131 void (*clean_dcache_cb)(struct _lv_disp_drv_t * disp_drv);
134 void (*drv_update_cb)(struct _lv_disp_drv_t * disp_drv);
137 void (*render_start_cb)(struct _lv_disp_drv_t * disp_drv);
144 void (*draw_ctx_init)(struct _lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx);
[all …]
Dlv_hal_disp.c47 static void set_px_true_color_alpha(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_c…
51 static void set_px_cb_alpha1(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t …
54 static void set_px_cb_alpha2(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t …
57 static void set_px_cb_alpha4(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t …
60 static void set_px_cb_alpha8(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t …
519 void LV_ATTRIBUTE_FLUSH_READY lv_disp_flush_ready(lv_disp_drv_t * disp_drv) in lv_disp_flush_ready() argument
521 disp_drv->draw_buf->flushing = 0; in lv_disp_flush_ready()
522 disp_drv->draw_buf->flushing_last = 0; in lv_disp_flush_ready()
531 bool LV_ATTRIBUTE_FLUSH_READY lv_disp_flush_is_last(lv_disp_drv_t * disp_drv) in lv_disp_flush_is_last() argument
533 return disp_drv->draw_buf->flushing_last; in lv_disp_flush_is_last()
[all …]
/lvgl-3.7.0/examples/arduino/LVGL_Arduino/
DLVGL_Arduino.ino31 void my_disp_flush( lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p )
41 lv_disp_flush_ready( disp_drv );
99 static lv_disp_drv_t disp_drv;
100 lv_disp_drv_init( &disp_drv );
102 disp_drv.hor_res = screenWidth;
103 disp_drv.ver_res = screenHeight;
104 disp_drv.flush_cb = my_disp_flush;
105 disp_drv.draw_buf = &draw_buf;
106 lv_disp_drv_register( &disp_drv );
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl.h59 void lv_draw_sdl_init_ctx(lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx);
65 void lv_draw_sdl_deinit_ctx(lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx);
Dlv_draw_sdl.c61 void lv_draw_sdl_init_ctx(lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx) in lv_draw_sdl_init_ctx() argument
77 draw_ctx_sdl->renderer = ((lv_draw_sdl_drv_param_t *) disp_drv->user_data)->renderer; in lv_draw_sdl_init_ctx()
83 void lv_draw_sdl_deinit_ctx(lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx) in lv_draw_sdl_deinit_ctx() argument
/lvgl-3.7.0/docs/get-started/platforms/
Drenesas.md45 static lv_disp_drv_t disp_drv;
56 lv_disp_drv_init(&disp_drv); /*Basic initialization*/
59 disp_drv.hor_res = LV_HOR_RES_MAX;
60 disp_drv.ver_res = LV_VER_RES_MAX;
63 disp_drv.draw_buf = &disp_buf;
66 disp_drv.flush_cb = disp_flush;
72 lv_disp_drv_register(&disp_drv);
118 static void my_flush_cb(lv_disp_drv_t *disp_drv, const lv_area_t *area, lv_color_t *color_p)
127 lv_disp_flush_ready(disp_drv);
/lvgl-3.7.0/docs/porting/
Ddisplay.md72 1. initialized with `lv_disp_drv_init(&disp_drv)`
74 3. it needs to be registered in LVGL with `lv_disp_drv_register(&disp_drv)`
84 `lv_disp_flush_ready(&disp_drv)` needs to be called when flushing is ready.
85 …s. To see if the current one is the last chunk of rendering use `lv_disp_flush_is_last(&disp_drv)`.
117 static lv_disp_drv_t disp_drv; /*A variable to hold the drivers. Must be static or global.…
118 lv_disp_drv_init(&disp_drv); /*Basic initialization*/
119 disp_drv.draw_buf = &disp_buf; /*Set an initialized buffer*/
120 disp_drv.flush_cb = my_flush_cb; /*Set a flush callback to draw to the display*/
121 disp_drv.hor_res = 320; /*Set the horizontal resolution in pixels*/
122 disp_drv.ver_res = 240; /*Set the vertical resolution in pixels*/
[all …]
Dgpu.md35 - `void (*draw_ctx_init)(struct _lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx)` Callback to i…
36 - `void (*draw_ctx_deinit)(struct _lv_disp_drv_t * disp_drv, lv_draw_ctx_t * draw_ctx)` Callback to…
Dindev.md9 lv_disp_drv_register(&disp_drv);
/lvgl-3.7.0/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.c68 LV_STM32_DMA2D_STATIC void _lv_gpu_stm32_dma2d_await_dma_transfer_finish(lv_disp_drv_t * disp_drv);
634 LV_STM32_DMA2D_STATIC void _lv_gpu_stm32_dma2d_await_dma_transfer_finish(lv_disp_drv_t * disp_drv) in _lv_gpu_stm32_dma2d_await_dma_transfer_finish() argument
636 if(disp_drv && disp_drv->wait_cb) { in _lv_gpu_stm32_dma2d_await_dma_transfer_finish()
638 disp_drv->wait_cb(disp_drv); in _lv_gpu_stm32_dma2d_await_dma_transfer_finish()
/lvgl-3.7.0/docs/get-started/
Dquick-overview.md34 static lv_disp_drv_t disp_drv; /*Descriptor of a display driver*/
35 lv_disp_drv_init(&disp_drv); /*Basic initialization*/
36 disp_drv.flush_cb = my_disp_flush; /*Set your driver function*/
37 disp_drv.draw_buf = &draw_buf; /*Assign the buffer to the display*/
38 disp_drv.hor_res = MY_DISP_HOR_RES; /*Set the horizontal resolution of the display*/
39 disp_drv.ver_res = MY_DISP_VER_RES; /*Set the vertical resolution of the display*/
40 lv_disp_drv_register(&disp_drv); /*Finally register the driver*/
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.py24 disp_drv = lv.disp_drv_t() variable
25 disp_drv.init()
26 disp_drv.buffer = disp_buf1
27 disp_drv.flush_cb = SDL.monitor_flush
28 disp_drv.hor_res = 480
29 disp_drv.ver_res = 320
30 disp_drv.register()
547 tv.set_style_local_pad_left(lv.tabview.PART.TAB_BG, lv.STATE.DEFAULT, disp_drv.hor_res // 2)
/lvgl-3.7.0/demos/benchmark/
DREADME.md59 static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
71 lv_disp_flush_ready(disp_drv);
/lvgl-3.7.0/docs/
DCHANGELOG.md388 - feat(hal): add render_start_cb to disp_drv [`3274`](https://github.com/lvgl/lvgl/pull/3274)
1175 - fix(refr) set disp_drv->draw_buf->flushing_last correctly with sw rotation [`c514bdd`](http…
1662 - `disp_drv->full_refresh = 1` makes always the whole display redraw.
1663 - `hor_res` and `ver_res` need to be set in `disp_drv`