Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ft8xx_copro.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Hubert Miś
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_
13#define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_
14
15#include <stdint.h>
16#include <zephyr/device.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
28
30#define FT8XX_OPT_3D 0
32#define FT8XX_OPT_RGB565 0
34#define FT8XX_OPT_MONO 1
36#define FT8XX_OPT_NODL 2
38#define FT8XX_OPT_FLAT 256
40#define FT8XX_OPT_SIGNED 256
42#define FT8XX_OPT_CENTERX 512
44#define FT8XX_OPT_CENTERY 1024
46#define FT8XX_OPT_CENTER 1536
48#define FT8XX_OPT_RIGHTX 2048
50#define FT8XX_OPT_NOBACK 4096
54#define FT8XX_OPT_NOTICKS 8192
58#define FT8XX_OPT_NOHM 16384
60#define FT8XX_OPT_NOPOINTER 16384
62#define FT8XX_OPT_NOSECS 32768
64#define FT8XX_OPT_NOHANDS 49152
65
72void ft8xx_copro_cmd(const struct device *dev, uint32_t cmd);
73
79void ft8xx_copro_cmd_dlstart(const struct device *dev);
80
86void ft8xx_copro_cmd_swap(const struct device *dev);
87
99void ft8xx_copro_cmd_fgcolor(const struct device *dev, uint32_t color);
100
112void ft8xx_copro_cmd_bgcolor(const struct device *dev, uint32_t color);
113
132void ft8xx_copro_cmd_slider(const struct device *dev,
133 int16_t x,
134 int16_t y,
135 int16_t width,
136 int16_t height,
137 uint16_t options,
138 uint16_t val,
139 uint16_t range);
140
159void ft8xx_copro_cmd_toggle(const struct device *dev,
160 int16_t x,
161 int16_t y,
162 int16_t width,
163 int16_t font,
164 uint16_t options,
166 const char *string);
167
212void ft8xx_copro_cmd_track(const struct device *dev,
213 int16_t x,
214 int16_t y,
215 int16_t width,
216 int16_t height,
217 int16_t tag);
218
235void ft8xx_copro_cmd_text(const struct device *dev,
236 int16_t x,
237 int16_t y,
238 int16_t font,
239 uint16_t options,
240 const char *string);
241
262void ft8xx_copro_cmd_number(const struct device *dev,
263 int16_t x,
264 int16_t y,
265 int16_t font,
266 uint16_t options,
267 int32_t number);
268
281void ft8xx_copro_cmd_calibrate(const struct device *dev, uint32_t *result);
282
286
287#ifdef __cplusplus
288}
289#endif
290
291#endif /* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_ */
void ft8xx_copro_cmd_text(const struct device *dev, int16_t x, int16_t y, int16_t font, uint16_t options, const char *string)
Draw text.
void ft8xx_copro_cmd_swap(const struct device *dev)
Swap the current display list.
void ft8xx_copro_cmd_slider(const struct device *dev, int16_t x, int16_t y, int16_t width, int16_t height, uint16_t options, uint16_t val, uint16_t range)
Draw a slider.
void ft8xx_copro_cmd_number(const struct device *dev, int16_t x, int16_t y, int16_t font, uint16_t options, int32_t number)
Draw a decimal number.
void ft8xx_copro_cmd_toggle(const struct device *dev, int16_t x, int16_t y, int16_t width, int16_t font, uint16_t options, uint16_t state, const char *string)
Draw a toggle switch.
void ft8xx_copro_cmd(const struct device *dev, uint32_t cmd)
Execute a display list command by co-processor engine.
void ft8xx_copro_cmd_fgcolor(const struct device *dev, uint32_t color)
Set the foreground color.
void ft8xx_copro_cmd_dlstart(const struct device *dev)
Start a new display list.
void ft8xx_copro_cmd_track(const struct device *dev, int16_t x, int16_t y, int16_t width, int16_t height, int16_t tag)
Track touches for a graphics object.
void ft8xx_copro_cmd_calibrate(const struct device *dev, uint32_t *result)
Execute the touch screen calibration routine.
void ft8xx_copro_cmd_bgcolor(const struct device *dev, uint32_t color)
Set the background color.
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
state
Definition parser_state.h:29
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT16_TYPE__ int16_t
Definition stdint.h:73
Runtime device structure (in ROM) per driver instance.
Definition device.h:513