Zephyr Project API
4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
paj7620.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Paul Timke <ptimkec@live.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
15
#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_PAJ7620_H_
16
#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_PAJ7620_H_
17
18
#ifdef __cplusplus
19
extern
"C"
20
{
21
#endif
/* __cplusplus */
22
23
#include <
zephyr/drivers/sensor.h
>
24
25
#define PAJ7620_FLAG_GES_UP BIT(0)
26
#define PAJ7620_FLAG_GES_DOWN BIT(1)
27
#define PAJ7620_FLAG_GES_LEFT BIT(2)
28
#define PAJ7620_FLAG_GES_RIGHT BIT(3)
29
#define PAJ7620_FLAG_GES_FORWARD BIT(4)
30
#define PAJ7620_FLAG_GES_BACKWARD BIT(5)
31
#define PAJ7620_FLAG_GES_CLOCKWISE BIT(6)
32
#define PAJ7620_FLAG_GES_COUNTERCLOCKWISE BIT(7)
33
#define PAJ7620_FLAG_GES_WAVE BIT(8)
34
35
enum
sensor_channel_paj7620
{
42
SENSOR_CHAN_PAJ7620_GESTURES
=
SENSOR_CHAN_PRIV_START
43
};
44
45
#ifdef __cplusplus
46
}
47
#endif
/* __cplusplus */
48
49
#endif
/* ZEPHYR_INCLUDE_DRIVERS_SENSOR_PAJ7620_H_ */
SENSOR_CHAN_PRIV_START
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition
sensor.h:217
sensor_channel_paj7620
sensor_channel_paj7620
Definition
paj7620.h:35
SENSOR_CHAN_PAJ7620_GESTURES
@ SENSOR_CHAN_PAJ7620_GESTURES
This channel will contain gesture data as a bitmask where each set bit represents a detected gesture.
Definition
paj7620.h:42
sensor.h
Public APIs for the sensor driver.
include
zephyr
drivers
sensor
paj7620.h
Generated on Fri Jun 20 2025 13:59:09 for Zephyr Project API by
1.9.8