Zephyr Project API 4.0.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
12#ifndef ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_
13#define ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_
14
15#include <stdint.h>
16#include <zephyr/device.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
43
53typedef void (*ft8xx_int_callback)(const struct device *dev, void *user_data);
54
69void ft8xx_calibrate(const struct device *dev,
71
82void ft8xx_touch_transform_set(const struct device *dev,
83 const struct ft8xx_touch_transform *data);
84
92int ft8xx_get_touch_tag(const struct device *dev);
93
108void ft8xx_register_int(const struct device *dev,
109 ft8xx_int_callback callback,
110 void *user_data);
111
116#ifdef __cplusplus
117}
118#endif
119
120#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:53
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:453
void * data
Address of the device instance private data.
Definition device.h:463
Structure holding touchscreen calibration data.
Definition ft8xx.h:35
uint32_t b
Definition ft8xx.h:37
uint32_t e
Definition ft8xx.h:40
uint32_t f
Definition ft8xx.h:41
uint32_t c
Definition ft8xx.h:38
uint32_t a
Definition ft8xx.h:36
uint32_t d
Definition ft8xx.h:39