Data Structures | |
struct | DisplayInfo |
Display information structure. More... | |
struct | TouchReport |
Touchscreen report. More... | |
Defines | |
#define | USBD480_API _declspec(dllimport) |
#define | USBD480_OK 1 |
#define | USBD480_ERROR 0 |
#define | USBD480_OPEN_WITH_USERNAME 0x01 |
Typedefs | |
typedef unsigned int | uint32_t |
typedef unsigned short | uint16_t |
typedef unsigned char | uint8_t |
Enumerations | |
enum | PIXEL_FORMAT { PF_1BPP = 0, PF_1BPP_DS, PF_2BPP, PF_4BPP, PF_8BPP, PF_16BPP_RGB565, PF_16BPP_BGR565, PF_32BPP } |
Functions | |
USBD480_API int _stdcall | USBD480_GetNumberOfDisplays (void) |
Returns the number of attached displays. | |
USBD480_API int _stdcall | USBD480_GetDisplayConfiguration (uint32_t index, DisplayInfo *di) |
Get display configuration information for specified display. | |
USBD480_API int _stdcall | USBD480_Open (DisplayInfo *di, uint32_t flags) |
Open the display. | |
USBD480_API int _stdcall | USBD480_Close (DisplayInfo *di) |
Close the display. | |
USBD480_API int _stdcall | USBD480_DrawFullScreen (DisplayInfo *di, uint8_t *fb) |
Draw full screen image to the display from RGB565 buffer. | |
USBD480_API int _stdcall | USBD480_DrawFullScreenRGBA32 (DisplayInfo *di, uint32_t *fb) |
Draw full screen image to the display from RGBA buffer. | |
USBD480_API int _stdcall | USBD480_DrawFullScreenBGRA32 (DisplayInfo *di, uint32_t *fb) |
Draw full screen image to the display from BGRA buffer. | |
USBD480_API int _stdcall | USBD480_SetBrightness (DisplayInfo *di, uint32_t brightness) |
Set display brightness. | |
USBD480_API int _stdcall | USBD480_SetTouchMode (DisplayInfo *di, uint32_t mode) |
Set touchscreen report mode. | |
USBD480_API int _stdcall | USBD480_SetAddress (DisplayInfo *di, uint32_t address) |
Set address pointer in the frame buffer memory. | |
USBD480_API int _stdcall | USBD480_SetFrameStartAddress (DisplayInfo *di, uint32_t address) |
Set frame start address in the frame buffer. | |
USBD480_API int _stdcall | USBD480_DrawFromBuffer (DisplayInfo *di, uint8_t *fb, uint32_t size) |
Draw to the display from a buffer. | |
USBD480_API int _stdcall | USBD480_GetTouchReport (DisplayInfo *di, TouchReport *touch) |
Get touch screen report. | |
USBD480_API int _stdcall | USBD480_GetTouchPosition (DisplayInfo *di, uint32_t *x, uint32_t *y) |
Get touch screen position. | |
USBD480_API int _stdcall | USBD480_SetStartupImage (DisplayInfo *di, uint8_t *buffer, uint32_t size) |
USBD480_API int _stdcall | USBD480_UpdateFPGA (DisplayInfo *di) |
USBD480_API int _stdcall | USBD480_UpdateFW (DisplayInfo *di) |
#define USBD480_API _declspec(dllimport) |
#define USBD480_OK 1 |
#define USBD480_ERROR 0 |
#define USBD480_OPEN_WITH_USERNAME 0x01 |
typedef unsigned int uint32_t |
typedef unsigned short uint16_t |
typedef unsigned char uint8_t |
enum PIXEL_FORMAT |
USBD480_API int _stdcall USBD480_GetNumberOfDisplays | ( | void | ) |
Returns the number of attached displays.
This function returns the number of attached displays. Returns the number of all attached displays even if they are in use and not available.
USBD480_API int _stdcall USBD480_GetDisplayConfiguration | ( | uint32_t | index, | |
DisplayInfo * | di | |||
) |
Get display configuration information for specified display.
index | is the number of the display for which the information is read. | |
di | is a pointer to the DisplayInfo structure where the information will be saved. |
USBD480_API int _stdcall USBD480_Open | ( | DisplayInfo * | di, | |
uint32_t | flags | |||
) |
Open the display.
di | is a pointer to the DisplayInfo structure of the display to open. | |
flags | should be 0. |
USBD480_API int _stdcall USBD480_Close | ( | DisplayInfo * | di | ) |
Close the display.
di | is a pointer to the DisplayInfo structure of the display to close. |
USBD480_API int _stdcall USBD480_DrawFullScreen | ( | DisplayInfo * | di, | |
uint8_t * | fb | |||
) |
Draw full screen image to the display from RGB565 buffer.
di | is a pointer to the DisplayInfo structure of the display to use. | |
fb | is a pointer to the buffer including the data to write to the display. |
USBD480_API int _stdcall USBD480_DrawFullScreenRGBA32 | ( | DisplayInfo * | di, | |
uint32_t * | fb | |||
) |
Draw full screen image to the display from RGBA buffer.
di | is a pointer to the DisplayInfo structure of the display to use. | |
fb | is a pointer to the buffer including the data to write to the display. |
USBD480_API int _stdcall USBD480_DrawFullScreenBGRA32 | ( | DisplayInfo * | di, | |
uint32_t * | fb | |||
) |
Draw full screen image to the display from BGRA buffer.
di | is a pointer to the DisplayInfo structure of the display to use. | |
fb | is a pointer to the buffer including the data to write to the display. |
USBD480_API int _stdcall USBD480_SetBrightness | ( | DisplayInfo * | di, | |
uint32_t | brightness | |||
) |
Set display brightness.
di | is a pointer to the DisplayInfo structure of the display to use. | |
brightness | is the backlight brightness. (0-255) |
USBD480_API int _stdcall USBD480_SetTouchMode | ( | DisplayInfo * | di, | |
uint32_t | mode | |||
) |
Set touchscreen report mode.
di | is a pointer to the DisplayInfo structure of the display to use. | |
mode | is the touch mode. |
USBD480_API int _stdcall USBD480_SetAddress | ( | DisplayInfo * | di, | |
uint32_t | address | |||
) |
Set address pointer in the frame buffer memory.
di | is a pointer to the DisplayInfo structure of the display to use. | |
address | is the address in the frame buffer memory. |
USBD480_API int _stdcall USBD480_SetFrameStartAddress | ( | DisplayInfo * | di, | |
uint32_t | address | |||
) |
Set frame start address in the frame buffer.
di | is a pointer to the DisplayInfo structure of the display to use. | |
address | is the address in the frame buffer memory. |
USBD480_API int _stdcall USBD480_DrawFromBuffer | ( | DisplayInfo * | di, | |
uint8_t * | fb, | |||
uint32_t | size | |||
) |
Draw to the display from a buffer.
di | is a pointer to the DisplayInfo structure of the display to use. | |
fb | is a pointer to the buffer including the data to write to the display. | |
size | is the size of the data. (data is expected in 512 byte blocks) |
USBD480_API int _stdcall USBD480_GetTouchReport | ( | DisplayInfo * | di, | |
TouchReport * | touch | |||
) |
Get touch screen report.
di | is a pointer to the DisplayInfo structure of the display to use. | |
touch | is a pointer to the TouchReport structure. |
USBD480_API int _stdcall USBD480_GetTouchPosition | ( | DisplayInfo * | di, | |
uint32_t * | x, | |||
uint32_t * | y | |||
) |
Get touch screen position.
di | is a pointer to the DisplayInfo structure of the display to use. | |
x | is a pointer to unsigned integer where to store the X position | |
y | is a pointer to unsigned integer where to store the Y position |
USBD480_API int _stdcall USBD480_SetStartupImage | ( | DisplayInfo * | di, | |
uint8_t * | buffer, | |||
uint32_t | size | |||
) |
USBD480_API int _stdcall USBD480_UpdateFPGA | ( | DisplayInfo * | di | ) |
USBD480_API int _stdcall USBD480_UpdateFW | ( | DisplayInfo * | di | ) |