2016-06-08 07:25:08 +02:00
|
|
|
/**
|
|
|
|
* @file lv_vdb.h
|
2018-06-18 13:52:14 +03:00
|
|
|
*
|
2016-06-08 07:25:08 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_VDB_H
|
|
|
|
#define LV_VDB_H
|
|
|
|
|
2017-07-09 15:32:49 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-06-08 07:25:08 +02:00
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
2017-11-26 23:57:39 +01:00
|
|
|
#include "../../lv_conf.h"
|
2016-06-08 07:25:08 +02:00
|
|
|
|
|
|
|
#if LV_VDB_SIZE != 0
|
|
|
|
|
2017-11-23 20:42:14 +01:00
|
|
|
#include "../lv_misc/lv_color.h"
|
|
|
|
#include "../lv_misc/lv_area.h"
|
2016-06-08 07:25:08 +02:00
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2017-11-23 21:28:36 +01:00
|
|
|
lv_area_t area;
|
2017-11-30 09:53:26 +01:00
|
|
|
lv_color_t *buf;
|
2018-06-18 13:52:14 +03:00
|
|
|
} lv_vdb_t;
|
2016-06-08 07:25:08 +02:00
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
2017-01-13 23:27:49 +01:00
|
|
|
/**
|
2017-08-04 19:09:29 +02:00
|
|
|
* Get the 'vdb' variable or allocate one in LV_VDB_DOUBLE mode
|
2017-11-29 10:46:59 +01:00
|
|
|
* @return pointer to a 'vdb' variable
|
2017-01-13 23:27:49 +01:00
|
|
|
*/
|
2016-06-08 07:25:08 +02:00
|
|
|
lv_vdb_t * lv_vdb_get(void);
|
2017-01-13 23:27:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Flush the content of the vdb
|
|
|
|
*/
|
2016-06-08 07:25:08 +02:00
|
|
|
void lv_vdb_flush(void);
|
2017-01-13 23:27:49 +01:00
|
|
|
|
2017-08-04 19:09:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* In 'LV_VDB_DOUBLE' mode has to be called when 'disp_map()'
|
|
|
|
* is ready with copying the map to a frame buffer.
|
|
|
|
*/
|
2017-11-29 10:46:59 +01:00
|
|
|
void lv_flush_ready(void);
|
2017-08-04 19:09:29 +02:00
|
|
|
|
2016-06-08 07:25:08 +02:00
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
2017-12-02 20:43:50 +01:00
|
|
|
#else /*LV_VDB_SIZE != 0*/
|
|
|
|
|
|
|
|
/*Just for compatibility*/
|
|
|
|
void lv_flush_ready(void);
|
|
|
|
#endif
|
2016-06-08 07:25:08 +02:00
|
|
|
|
2017-07-09 15:32:49 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
2016-06-08 07:25:08 +02:00
|
|
|
#endif
|
2017-07-09 15:32:49 +02:00
|
|
|
|
|
|
|
#endif /*LV_VDB_H*/
|