Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ft8xx_copro.h File Reference

FT8XX coprocessor functions. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define FT8XX_OPT_3D   0
 Co-processor widget is drawn in 3D effect.
 
#define FT8XX_OPT_RGB565   0
 Co-processor option to decode the JPEG image to RGB565 format.
 
#define FT8XX_OPT_MONO   1
 Co-processor option to decode the JPEG image to L8 format, i.e., monochrome.
 
#define FT8XX_OPT_NODL   2
 No display list commands generated for bitmap decoded from JPEG image.
 
#define FT8XX_OPT_FLAT   256
 Co-processor widget is drawn without 3D effect.
 
#define FT8XX_OPT_SIGNED   256
 The number is treated as 32 bit signed integer.
 
#define FT8XX_OPT_CENTERX   512
 Co-processor widget centers horizontally.
 
#define FT8XX_OPT_CENTERY   1024
 Co-processor widget centers vertically.
 
#define FT8XX_OPT_CENTER   1536
 Co-processor widget centers horizontally and vertically.
 
#define FT8XX_OPT_RIGHTX   2048
 The label on the Coprocessor widget is right justified.
 
#define FT8XX_OPT_NOBACK   4096
 Co-processor widget has no background drawn.
 
#define FT8XX_OPT_NOTICKS   8192
 Co-processor clock widget is drawn without hour ticks.
 
#define FT8XX_OPT_NOHM   16384
 Co-processor clock widget is drawn without hour and minutes hands, only seconds hand is drawn.
 
#define FT8XX_OPT_NOPOINTER   16384
 The Co-processor gauge has no pointer.
 
#define FT8XX_OPT_NOSECS   32768
 Co-processor clock widget is drawn without seconds hand.
 
#define FT8XX_OPT_NOHANDS   49152
 Co-processor clock widget is drawn without hour, minutes and seconds hands.
 

Functions

void ft8xx_copro_cmd (uint32_t cmd)
 Execute a display list command by co-processor engine.
 
void ft8xx_copro_cmd_dlstart (void)
 Start a new display list.
 
void ft8xx_copro_cmd_swap (void)
 Swap the current display list.
 
void ft8xx_copro_cmd_text (int16_t x, int16_t y, int16_t font, uint16_t options, const char *s)
 Draw text.
 
void ft8xx_copro_cmd_number (int16_t x, int16_t y, int16_t font, uint16_t options, int32_t n)
 Draw a decimal number.
 
void ft8xx_copro_cmd_calibrate (uint32_t *result)
 Execute the touch screen calibration routine.
 

Detailed Description

FT8XX coprocessor functions.