Line data Source code
1 1 : /*
2 : * Copyright (c) 2025 Croxel Inc.
3 : * Copyright (c) 2025 CogniPilot Foundation
4 : *
5 : * SPDX-License-Identifier: Apache-2.0
6 : */
7 :
8 : /**
9 : * @file
10 : * @brief Header file for extended sensor API of AFBR-S50 sensor
11 : * @ingroup afbr_s50_interface
12 : */
13 :
14 : #ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_AFBR_S50_H_
15 : #define ZEPHYR_INCLUDE_DRIVERS_SENSOR_AFBR_S50_H_
16 :
17 : /**
18 : * @brief Broadcom AFBR-S50 3D ToF sensor
19 : * @defgroup afbr_s50_interface AFBR-S50
20 : * @ingroup sensor_interface_ext
21 : * @{
22 : */
23 :
24 : #include <zephyr/drivers/sensor.h>
25 :
26 : #ifdef __cplusplus
27 : extern "C" {
28 : #endif
29 :
30 : /** Disregard pixel reading if contains this value */
31 1 : #define AFBR_PIXEL_INVALID_VALUE 0x80000000
32 :
33 : /**
34 : * Custom sensor channels for AFBR-S50
35 : */
36 1 : enum sensor_channel_afbr_s50 {
37 : /**
38 : * Obtain matrix of pixels, with readings in meters.
39 : * The sensor supports up to 32 pixels in a single reading (4 x 8 matrix).
40 : */
41 : SENSOR_CHAN_AFBR_S50_PIXELS = SENSOR_CHAN_PRIV_START + 1,
42 : };
43 :
44 : #ifdef __cplusplus
45 : }
46 : #endif
47 :
48 : /**
49 : * @}
50 : */
51 :
52 : #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_AFBR_S50_H_ */
|