Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ft8xx.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
13#ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_
14#define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_
15
16#include <stdint.h>
17#include <zephyr/device.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
37 uint32_t a; /*< Coefficient A of the bitmap transform matrix */
38 uint32_t b; /*< Coefficient B of the bitmap transform matrix */
39 uint32_t c; /*< Coefficient C of the bitmap transform matrix */
40 uint32_t d; /*< Coefficient D of the bitmap transform matrix */
41 uint32_t e; /*< Coefficient E of the bitmap transform matrix */
42 uint32_t f; /*< Coefficient F of the bitmap transform matrix */
43};
44
54typedef void (*ft8xx_int_callback)(const struct device *dev, void *user_data);
55
70void ft8xx_calibrate(const struct device *dev,
72
83void ft8xx_touch_transform_set(const struct device *dev,
84 const struct ft8xx_touch_transform *data);
85
93int ft8xx_get_touch_tag(const struct device *dev);
94
109void ft8xx_register_int(const struct device *dev,
110 ft8xx_int_callback callback,
111 void *user_data);
112
117#ifdef __cplusplus
118}
119#endif
120
121#endif /* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_ */
void ft8xx_touch_transform_set(const struct device *dev, const struct ft8xx_touch_transform *data)
Set touchscreen calibration data.
void ft8xx_calibrate(const struct device *dev, struct ft8xx_touch_transform *data)
Calibrate touchscreen.
int ft8xx_get_touch_tag(const struct device *dev)
Get tag of recently touched element.
void(* ft8xx_int_callback)(const struct device *dev, void *user_data)
Callback API to inform API user that FT8xx triggered interrupt.
Definition ft8xx.h:54
void ft8xx_register_int(const struct device *dev, ft8xx_int_callback callback, void *user_data)
Set callback executed when FT8xx triggers interrupt.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
void * data
Address of the device instance private data.
Definition device.h:520
Structure holding touchscreen calibration data.
Definition ft8xx.h:36
uint32_t b
Definition ft8xx.h:38
uint32_t e
Definition ft8xx.h:41
uint32_t f
Definition ft8xx.h:42
uint32_t c
Definition ft8xx.h:39
uint32_t a
Definition ft8xx.h:37
uint32_t d
Definition ft8xx.h:40