1 /**
2  * @file lv_refr_private.h
3  *
4  */
5 
6 #ifndef LV_REFR_PRIVATE_H
7 #define LV_REFR_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "lv_refr.h"
18 
19 /*********************
20  *      DEFINES
21  *********************/
22 
23 /**********************
24  *      TYPEDEFS
25  **********************/
26 
27 /**********************
28  * GLOBAL PROTOTYPES
29  **********************/
30 
31 /**
32  * Initialize the screen refresh subsystem
33  */
34 void lv_refr_init(void);
35 
36 /**
37  * Deinitialize the screen refresh subsystem
38  */
39 void lv_refr_deinit(void);
40 
41 /**
42  * Invalidate an area on display to redraw it
43  * @param area_p pointer to area which should be invalidated (NULL: delete the invalidated areas)
44  * @param disp pointer to display where the area should be invalidated (NULL can be used if there is
45  * only one display)
46  */
47 void lv_inv_area(lv_display_t * disp, const lv_area_t * area_p);
48 
49 /**
50  * Get the display which is being refreshed
51  * @return the display being refreshed
52  */
53 lv_display_t * lv_refr_get_disp_refreshing(void);
54 
55 /**
56  * Set the display which is being refreshed
57  * @param disp the display being refreshed
58  */
59 void lv_refr_set_disp_refreshing(lv_display_t * disp);
60 
61 /**
62  * Called periodically to handle the refreshing
63  * @param timer pointer to the timer itself
64  */
65 void lv_display_refr_timer(lv_timer_t * timer);
66 
67 /**********************
68  *      MACROS
69  **********************/
70 
71 #ifdef __cplusplus
72 } /*extern "C"*/
73 #endif
74 
75 #endif /*LV_REFR_PRIVATE_H*/
76