Line data Source code
1 1 : /*
2 : * Copyright (c) 2024, MASSDRIVER EI (massdriver.space)
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : /**
8 : * @file
9 : * @brief Header file for extended sensor API of XBR818 sensor
10 : *
11 : * This exposes 4 additional attributes used to configure the IC
12 : */
13 :
14 : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_XBR818_H_
15 : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_XBR818_H_
16 :
17 : /**
18 : * @brief Phosense XBR818 10 GHz Radar
19 : * @defgroup xbr818_interface XBR818
20 : * @ingroup sensor_interface_ext
21 : * @{
22 : */
23 :
24 : #ifdef __cplusplus
25 : extern "C" {
26 : #endif
27 :
28 : /**
29 : * @brief Custom sensor attributes for XBR818
30 : */
31 1 : enum sensor_attribute_xbr818 {
32 : /*!
33 : * Time of received activity before output is triggered, in seconds
34 : */
35 : SENSOR_ATTR_XBR818_DELAY_TIME = SENSOR_ATTR_PRIV_START,
36 : /*!
37 : * How long output stays triggered after no more activity is detected, in seconds
38 : */
39 : SENSOR_ATTR_XBR818_LOCK_TIME,
40 : /*!
41 : * Noise floor Threshold for Radar, 16 first LSBs of the integer part.
42 : */
43 : SENSOR_ATTR_XBR818_NOISE_FLOOR,
44 : /*!
45 : * RF Power for Radar, 0 to 7, LSB of the integer part.
46 : */
47 : SENSOR_ATTR_XBR818_RF_POWER
48 : };
49 :
50 : #ifdef __cplusplus
51 : }
52 : #endif
53 :
54 : /**
55 : * @}
56 : */
57 :
58 : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_XBR818_H_ */
|