2016-06-08 07:25:08 +02:00
|
|
|
/**
|
|
|
|
* @file lv_vdb.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_VDB_H
|
|
|
|
#define LV_VDB_H
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
2016-06-10 15:00:56 +02:00
|
|
|
#include "lv_conf.h"
|
2016-06-08 07:25:08 +02:00
|
|
|
|
|
|
|
#if LV_VDB_SIZE != 0
|
|
|
|
|
2017-04-21 09:15:39 +02:00
|
|
|
#include "misc/gfx/color.h"
|
|
|
|
#include "misc/gfx/area.h"
|
2016-06-08 07:25:08 +02:00
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2017-04-21 09:15:39 +02:00
|
|
|
area_t area;
|
2016-06-08 07:25:08 +02:00
|
|
|
color_t buf[LV_VDB_SIZE];
|
|
|
|
}lv_vdb_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
2017-01-13 23:27:49 +01:00
|
|
|
/**
|
|
|
|
* Get the vdb variable
|
|
|
|
* @return pointer to the vdb variable
|
|
|
|
*/
|
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
|
|
|
|
2016-06-08 07:25:08 +02:00
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|