Zephyr Project API 4.0.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
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
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
104void ft8xx_copro_cmd_text(const struct device *dev,
105 int16_t x,
106 int16_t y,
107 int16_t font,
108 uint16_t options,
109 const char *s);
110
131void ft8xx_copro_cmd_number(const struct device *dev,
132 int16_t x,
133 int16_t y,
134 int16_t font,
135 uint16_t options,
136 int32_t n);
137
150void ft8xx_copro_cmd_calibrate(const struct device *dev, uint32_t *result);
151
156#ifdef __cplusplus
157}
158#endif
159
160#endif /* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_COPRO_H_ */
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition asm-macro-32-bit-gnu.h:17
void ft8xx_copro_cmd_swap(const struct device *dev)
Swap the current display list.
void ft8xx_copro_cmd(const struct device *dev, uint32_t cmd)
Execute a display list command by co-processor engine.
void ft8xx_copro_cmd_number(const struct device *dev, int16_t x, int16_t y, int16_t font, uint16_t options, int32_t n)
Draw a decimal number.
void ft8xx_copro_cmd_dlstart(const struct device *dev)
Start a new display list.
void ft8xx_copro_cmd_calibrate(const struct device *dev, uint32_t *result)
Execute the touch screen calibration routine.
void ft8xx_copro_cmd_text(const struct device *dev, int16_t x, int16_t y, int16_t font, uint16_t options, const char *s)
Draw text.
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
__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:453