![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <tftframebuffer.h>
Data Fields | |
| FRAMEBUFFER_DEVICE | framebuffer |
| SPI_DEVICE * | spi |
| The SPI device this Framebuffer is connected to. | |
| uint16_t | chipselect |
| The SPI chip select of the device. | |
| GPIO_INFO | rst |
| The GPIO information for the reset line. | |
| GPIO_INFO | dc |
| The GPIO information for the data/command line. | |
| GPIO_INFO | bl |
| The GPIO information for the backlight line. | |
| tft_framebuffer_initialize_proc | initialize |
| A device specific Initialize method (Optional). | |
| tft_framebuffer_deinitialize_proc | deinitialize |
| A device specific Deinitialize method (Optional). | |
| tft_framebuffer_get_defaults_proc | getdefaults |
| A device specific GetDefaults method (Mandatory). | |
| tft_framebuffer_set_write_address_proc | setwriteaddress |
| A device specific SetWriteAddress method (Mandatory). | |
| tft_framebuffer_write_memory_proc | writememory |
| A device specific WriteMemory method (Mandatory). | |
| uint32_t | width |
| Framebuffer Width in Pixels. | |
| uint32_t | height |
| Framebuffer Height in Pixels. | |
| uint32_t | rotation |
| Framebuffer Rotation (eg FRAMEBUFFER_ROTATION_180). | |
| uint32_t | dirtyy1 |
| First line of dirty region (or Height - 1 if none dirty). | |
| uint32_t | dirtyy2 |
| Last line of dirty region (or 0 if none dirty). | |
| LONGBOOL | ready |
| If True timer should be enabled during Mark operation. | |
| MUTEX_HANDLE | lock |
| Lock for dirty region redraw. | |
| TIMER_HANDLE | timer |
| Handle for dirty region redraw timer. | |
| uint32_t | framerate |
| Frame rate for display refresh (in Frames Per Second). | |
| uint32_t | transfersize |
| Maximum transfer size for the SPI device (or -1 if No Maximum). | |
TFTFramebuffer Device
| FRAMEBUFFER_DEVICE framebuffer |
| SPI_DEVICE* spi |
The SPI device this Framebuffer is connected to.
| uint16_t chipselect |
The SPI chip select of the device.
| GPIO_INFO rst |
The GPIO information for the reset line.
| GPIO_INFO dc |
The GPIO information for the data/command line.
| GPIO_INFO bl |
The GPIO information for the backlight line.
| tft_framebuffer_initialize_proc initialize |
A device specific Initialize method (Optional).
| tft_framebuffer_deinitialize_proc deinitialize |
A device specific Deinitialize method (Optional).
| tft_framebuffer_get_defaults_proc getdefaults |
A device specific GetDefaults method (Mandatory).
| tft_framebuffer_set_write_address_proc setwriteaddress |
A device specific SetWriteAddress method (Mandatory).
| tft_framebuffer_write_memory_proc writememory |
A device specific WriteMemory method (Mandatory).
| uint32_t width |
Framebuffer Width in Pixels.
| uint32_t height |
Framebuffer Height in Pixels.
| uint32_t rotation |
Framebuffer Rotation (eg FRAMEBUFFER_ROTATION_180).
| uint32_t dirtyy1 |
First line of dirty region (or Height - 1 if none dirty).
| uint32_t dirtyy2 |
Last line of dirty region (or 0 if none dirty).
| LONGBOOL ready |
If True timer should be enabled during Mark operation.
| MUTEX_HANDLE lock |
Lock for dirty region redraw.
| TIMER_HANDLE timer |
Handle for dirty region redraw timer.
| uint32_t framerate |
Frame rate for display refresh (in Frames Per Second).
| uint32_t transfersize |
Maximum transfer size for the SPI device (or -1 if No Maximum).