Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
34
struct
ft8xx_touch_transform
{
35
uint32_t
a
;
36
uint32_t
b
;
37
uint32_t
c
;
38
uint32_t
d
;
39
uint32_t
e
;
40
uint32_t
f
;
41
};
42
49
typedef
void (*
ft8xx_int_callback
)(void);
50
64
void
ft8xx_calibrate
(
struct
ft8xx_touch_transform
*
data
);
65
75
void
ft8xx_touch_transform_set
(
const
struct
ft8xx_touch_transform
*
data
);
76
82
int
ft8xx_get_touch_tag
(
void
);
83
96
void
ft8xx_register_int
(
ft8xx_int_callback
callback);
97
102
#ifdef __cplusplus
103
}
104
#endif
105
106
#endif
/* ZEPHYR_DRIVERS_MISC_FT8XX_FT8XX_H_ */
ft8xx_register_int
void ft8xx_register_int(ft8xx_int_callback callback)
Set callback executed when FT8xx triggers interrupt.
ft8xx_int_callback
void(* ft8xx_int_callback)(void)
Callback API to inform API user that FT8xx triggered interrupt.
Definition:
ft8xx.h:49
ft8xx_get_touch_tag
int ft8xx_get_touch_tag(void)
Get tag of recently touched element.
ft8xx_calibrate
void ft8xx_calibrate(struct ft8xx_touch_transform *data)
Calibrate touchscreen.
ft8xx_touch_transform_set
void ft8xx_touch_transform_set(const struct ft8xx_touch_transform *data)
Set touchscreen calibration data.
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
ft8xx_touch_transform
Structure holding touchscreen calibration data.
Definition:
ft8xx.h:34
ft8xx_touch_transform::b
uint32_t b
Definition:
ft8xx.h:36
ft8xx_touch_transform::e
uint32_t e
Definition:
ft8xx.h:39
ft8xx_touch_transform::f
uint32_t f
Definition:
ft8xx.h:40
ft8xx_touch_transform::c
uint32_t c
Definition:
ft8xx.h:37
ft8xx_touch_transform::a
uint32_t a
Definition:
ft8xx.h:35
ft8xx_touch_transform::d
uint32_t d
Definition:
ft8xx.h:38
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
include
drivers
misc
ft8xx
ft8xx.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2