CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
lvgl_port.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
7
8#ifndef CARDSIGHT_LVGL_PORT_H
9#define CARDSIGHT_LVGL_PORT_H
10
11#include <stdbool.h>
12
13#include <drm/sunxi_display.h>
14
16typedef void (*lvgl_port_callback_t)(void *argument);
17
29int lvgl_port_post(lvgl_port_callback_t callback, void *argument);
30
36bool lvgl_port_ready(void);
37
44
51
58
59#endif /* CARDSIGHT_LVGL_PORT_H */
int lvgl_port_check_buffer(void)
Check the guard word after the SRAM draw buffer.
void lvgl_port_wait_idle(void)
Wait, inside the LVGL task, until the panel has taken the last flush.
int lvgl_port_post(lvgl_port_callback_t callback, void *argument)
Run callback from the LVGL task.
void(* lvgl_port_callback_t)(void *argument)
Function another task asks the LVGL task to run.
Definition lvgl_port.h:16
int lvgl_port_last_error(void)
The last error recorded by the LVGL task.
bool lvgl_port_ready(void)
Whether the display and the input device are up.
The panel: its size and pixel format, and the rectangle writes the UI flushes through.