Line data Source code
1 1 : /*
2 : * Copyright (c) 2020 arithmetics.io
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : /**
8 : * @file
9 : * @brief Header file for extended sensor API of FDC2X1X sensor
10 : * @ingroup fdc2x1x_interface
11 : */
12 :
13 : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_FDC2X1X_H_
14 : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_FDC2X1X_H_
15 :
16 : /**
17 : * @brief Texas Instruments FDC2X1X capacitive sensor
18 : * @defgroup fdc2x1x_interface FDC2X1X
19 : * @ingroup sensor_interface_ext
20 : * @{
21 : */
22 :
23 : #ifdef __cplusplus
24 : extern "C" {
25 : #endif
26 :
27 : #include <zephyr/drivers/sensor.h>
28 :
29 : /**
30 : * Custom sensor channels for FDC2X1X
31 : */
32 1 : enum sensor_channel_fdc2x1x {
33 : /** CH0 Capacitance, in picofarad **/
34 : SENSOR_CHAN_FDC2X1X_CAPACITANCE_CH0 = SENSOR_CHAN_PRIV_START,
35 : /** CH1 Capacitance, in picofarad **/
36 : SENSOR_CHAN_FDC2X1X_CAPACITANCE_CH1,
37 : /** CH2 Capacitance, in picofarad **/
38 : SENSOR_CHAN_FDC2X1X_CAPACITANCE_CH2,
39 : /** CH3 Capacitance, in picofarad **/
40 : SENSOR_CHAN_FDC2X1X_CAPACITANCE_CH3,
41 :
42 : /** CH0 Frequency, in MHz **/
43 : SENSOR_CHAN_FDC2X1X_FREQ_CH0,
44 : /** CH1 Frequency, in MHz **/
45 : SENSOR_CHAN_FDC2X1X_FREQ_CH1,
46 : /** CH2 Frequency, in MHz **/
47 : SENSOR_CHAN_FDC2X1X_FREQ_CH2,
48 : /** CH3 Frequency, in MHz **/
49 : SENSOR_CHAN_FDC2X1X_FREQ_CH3,
50 : };
51 :
52 : #ifdef __cplusplus
53 : }
54 : #endif
55 :
56 : /**
57 : * @}
58 : */
59 :
60 : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_FDC2X1X_ */
|