nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
motion_sensor.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _MOTION_SENSOR_H_
8#define _MOTION_SENSOR_H_
9
19
21};
22
23#if CONFIG_DESKTOP_MOTION_SENSOR_PMW3360_ENABLE
24
25 #include <sensor/pmw3360.h>
26
27 #define MOTION_SENSOR_COMPATIBLE pixart_pmw3360
28
29 static const int motion_sensor_option_attr[MOTION_SENSOR_OPTION_COUNT] = {
38 };
39
40#elif CONFIG_DESKTOP_MOTION_SENSOR_PAW3212_ENABLE
41
42 #include <sensor/paw3212.h>
43
44 #define MOTION_SENSOR_COMPATIBLE pixart_paw3212
45
46 static const int motion_sensor_option_attr[MOTION_SENSOR_OPTION_COUNT] = {
55 };
56
57#else
58
59 #error "Sensor not supported"
60
61#endif
62
63#endif /* _MOTION_SENSOR_H_ */
@ PAW3212_ATTR_SLEEP1_SAMPLE_TIME
Definition: paw3212.h:46
@ PAW3212_ATTR_SLEEP2_SAMPLE_TIME
Definition: paw3212.h:49
@ PAW3212_ATTR_SLEEP3_TIMEOUT
Definition: paw3212.h:43
@ PAW3212_ATTR_SLEEP_ENABLE
Definition: paw3212.h:34
@ PAW3212_ATTR_CPI
Definition: paw3212.h:31
@ PAW3212_ATTR_SLEEP2_TIMEOUT
Definition: paw3212.h:40
@ PAW3212_ATTR_SLEEP3_SAMPLE_TIME
Definition: paw3212.h:52
@ PAW3212_ATTR_SLEEP1_TIMEOUT
Definition: paw3212.h:37
@ PMW3360_ATTR_REST2_DOWNSHIFT_TIME
Definition: pmw3360.h:43
@ PMW3360_ATTR_REST1_DOWNSHIFT_TIME
Definition: pmw3360.h:40
@ PMW3360_ATTR_REST3_SAMPLE_TIME
Definition: pmw3360.h:52
@ PMW3360_ATTR_REST2_SAMPLE_TIME
Definition: pmw3360.h:49
@ PMW3360_ATTR_REST_ENABLE
Definition: pmw3360.h:34
@ PMW3360_ATTR_REST1_SAMPLE_TIME
Definition: pmw3360.h:46
@ PMW3360_ATTR_CPI
Definition: pmw3360.h:31
@ PMW3360_ATTR_RUN_DOWNSHIFT_TIME
Definition: pmw3360.h:37
motion_sensor_option
Definition: motion_sensor.h:10
@ MOTION_SENSOR_OPTION_SLEEP3_TIMEOUT
Definition: motion_sensor.h:15
@ MOTION_SENSOR_OPTION_COUNT
Definition: motion_sensor.h:20
@ MOTION_SENSOR_OPTION_SLEEP1_SAMPLE_TIME
Definition: motion_sensor.h:16
@ MOTION_SENSOR_OPTION_SLEEP_ENABLE
Definition: motion_sensor.h:12
@ MOTION_SENSOR_OPTION_SLEEP2_TIMEOUT
Definition: motion_sensor.h:14
@ MOTION_SENSOR_OPTION_CPI
Definition: motion_sensor.h:11
@ MOTION_SENSOR_OPTION_SLEEP3_SAMPLE_TIME
Definition: motion_sensor.h:18
@ MOTION_SENSOR_OPTION_SLEEP1_TIMEOUT
Definition: motion_sensor.h:13
@ MOTION_SENSOR_OPTION_SLEEP2_SAMPLE_TIME
Definition: motion_sensor.h:17
Header file for the paw3212 driver.
Header file for the pmw3360 driver.