2019-05-30 01:52:31 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Intel Corp.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
|
|
|
#define ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
|
|
|
|
2019-06-26 03:56:36 +08:00
|
|
|
#include <drivers/display.h>
|
2019-05-30 01:52:31 +08:00
|
|
|
|
|
|
|
extern const struct display_driver_api framebuf_display_api;
|
|
|
|
|
|
|
|
struct framebuf_dev_data {
|
|
|
|
void *buffer;
|
2020-05-28 00:26:57 +08:00
|
|
|
uint32_t pitch;
|
|
|
|
uint16_t width;
|
|
|
|
uint16_t height;
|
2019-05-30 01:52:31 +08:00
|
|
|
};
|
|
|
|
|
2020-05-29 03:23:02 +08:00
|
|
|
#define FRAMEBUF_DATA(dev) ((struct framebuf_dev_data *) ((dev)->data))
|
2019-05-30 01:52:31 +08:00
|
|
|
|
|
|
|
#endif /* ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_ */
|